Changeset View
Changeset View
Standalone View
Standalone View
src/qt/macnotificationhandler.h
Show All 12 Lines | class MacNotificationHandler : public QObject { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
/** shows a macOS 10.8+ UserNotification in the UserNotificationCenter | /** shows a macOS 10.8+ UserNotification in the UserNotificationCenter | ||||
*/ | */ | ||||
void showNotification(const QString &title, const QString &text); | void showNotification(const QString &title, const QString &text); | ||||
/** check if OS can handle UserNotifications */ | /** check if OS can handle UserNotifications */ | ||||
bool hasUserNotificationCenterSupport(void); | bool hasUserNotificationCenterSupport(); | ||||
static MacNotificationHandler *instance(); | static MacNotificationHandler *instance(); | ||||
}; | }; | ||||
#endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H | #endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H |