mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-07 05:19:47 -08:00
Version 1.1.0.0 update
This commit is contained in:
25
src/qt/macnotificationhandler.h
Normal file
25
src/qt/macnotificationhandler.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef MACNOTIFICATIONHANDLER_H
|
||||
#define MACNOTIFICATIONHANDLER_H
|
||||
#include <QObject>
|
||||
|
||||
/** Macintosh-specific notification handler (supports UserNotificationCenter and Growl).
|
||||
*/
|
||||
class MacNotificationHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** shows a 10.8+ UserNotification in the UserNotificationCenter
|
||||
*/
|
||||
void showNotification(const QString &title, const QString &text);
|
||||
|
||||
/** executes AppleScript */
|
||||
void sendAppleScript(const QString &script);
|
||||
|
||||
/** check if OS can handle UserNotifications */
|
||||
bool hasUserNotificationCenterSupport(void);
|
||||
static MacNotificationHandler *instance();
|
||||
};
|
||||
|
||||
|
||||
#endif // MACNOTIFICATIONHANDLER_H
|
||||
Reference in New Issue
Block a user