|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <qt_notification_service.h>
Public Member Functions | |
| QtNotificationService (QObject *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| ~QtNotificationService () override | |
| void | clearAll () override |
| Clear all notifications. | |
| void | error (const std::string &message, float duration=5.0f) override |
| Show an error notification. | |
| void | info (const std::string &message, float duration=3.0f) override |
| Show an info notification. | |
| void | notificationReceived (const QString &message, int type, float duration) |
| void | setParentWidget (QWidget *widget) |
| void | show (const core::Notification ¬ification) override |
| Show a notification with full control. | |
| void | success (const std::string &message, float duration=3.0f) override |
| Show a success notification. | |
| void | warning (const std::string &message, float duration=5.0f) override |
| Show a warning notification. | |
| Public Member Functions inherited from core::INotificationService | |
| virtual | ~INotificationService ()=default |
Definition at line 87 of file qt_notification_service.h.
|
explicit |
Definition at line 252 of file qt_notification_service.cpp.
References notificationReceived().
|
overridedefault |
|
overridevirtual |
Clear all notifications.
Implements core::INotificationService.
Definition at line 297 of file qt_notification_service.cpp.
|
overridevirtual |
Show an error notification.
Implements core::INotificationService.
Definition at line 285 of file qt_notification_service.cpp.
References core::Error, and notificationReceived().
|
overridevirtual |
Show an info notification.
Implements core::INotificationService.
Definition at line 267 of file qt_notification_service.cpp.
References core::Info, and notificationReceived().
| void QtNotificationService::notificationReceived | ( | const QString & | message, |
| int | type, | ||
| float | duration ) |
| void QtNotificationService::setParentWidget | ( | QWidget * | widget | ) |
Definition at line 261 of file qt_notification_service.cpp.
|
overridevirtual |
Show a notification with full control.
Implements core::INotificationService.
Definition at line 291 of file qt_notification_service.cpp.
References core::Notification::duration, core::Notification::message, notificationReceived(), and core::Notification::type.
|
overridevirtual |
Show a success notification.
Implements core::INotificationService.
Definition at line 273 of file qt_notification_service.cpp.
References notificationReceived(), and core::Success.
|
overridevirtual |
Show a warning notification.
Implements core::INotificationService.
Definition at line 279 of file qt_notification_service.cpp.
References notificationReceived(), and core::Warning.