Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
macnotificationhandler.h
Go to the documentation of this file.
1 #ifndef MACNOTIFICATIONHANDLER_H
2 #define MACNOTIFICATIONHANDLER_H
3 #include <QObject>
4 
7 class MacNotificationHandler : public QObject
8 {
9  Q_OBJECT
10 
11 public:
14  void showNotification(const QString &title, const QString &text);
15 
17  void sendAppleScript(const QString &script);
18 
22 };
23 
24 
25 #endif // MACNOTIFICATIONHANDLER_H
bool hasUserNotificationCenterSupport(void)
check if OS can handle UserNotifications
static MacNotificationHandler * instance()
void sendAppleScript(const QString &script)
executes AppleScript
void showNotification(const QString &title, const QString &text)
shows a 10.8+ UserNotification in the UserNotificationCenter
Macintosh-specific notification handler (supports UserNotificationCenter and Growl).