game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
core::INotificationService Class Referenceabstract

#include <notification_service.h>

Inheritance diagram for core::INotificationService:

Public Member Functions

virtual ~INotificationService ()=default
virtual void clearAll ()=0
 Clear all notifications.
virtual void error (const std::string &message, float duration=5.0f)=0
 Show an error notification.
virtual void info (const std::string &message, float duration=3.0f)=0
 Show an info notification.
virtual void show (const Notification &notification)=0
 Show a notification with full control.
virtual void success (const std::string &message, float duration=3.0f)=0
 Show a success notification.
virtual void warning (const std::string &message, float duration=5.0f)=0
 Show a warning notification.

Detailed Description

Definition at line 46 of file notification_service.h.

Constructor & Destructor Documentation

◆ ~INotificationService()

virtual core::INotificationService::~INotificationService ( )
virtualdefault

Member Function Documentation

◆ clearAll()

virtual void core::INotificationService::clearAll ( )
pure virtual

Clear all notifications.

Implemented in core::NullNotificationService, and QtNotificationService.

◆ error()

virtual void core::INotificationService::error ( const std::string & message,
float duration = 5.0f )
pure virtual

Show an error notification.

Implemented in core::NullNotificationService, and QtNotificationService.

◆ info()

virtual void core::INotificationService::info ( const std::string & message,
float duration = 3.0f )
pure virtual

Show an info notification.

Implemented in core::NullNotificationService, and QtNotificationService.

◆ show()

virtual void core::INotificationService::show ( const Notification & notification)
pure virtual

Show a notification with full control.

Implemented in core::NullNotificationService, and QtNotificationService.

◆ success()

virtual void core::INotificationService::success ( const std::string & message,
float duration = 3.0f )
pure virtual

Show a success notification.

Implemented in core::NullNotificationService, and QtNotificationService.

◆ warning()

virtual void core::INotificationService::warning ( const std::string & message,
float duration = 5.0f )
pure virtual

Show a warning notification.

Implemented in core::NullNotificationService, and QtNotificationService.


The documentation for this class was generated from the following file: