Dash Core  0.12.2.1
P2P Digital Currency
MacNotificationHandler Class Reference

#include <macnotificationhandler.h>

+ Inheritance diagram for MacNotificationHandler:

Public Member Functions

void showNotification (const QString &title, const QString &text)
 
void sendAppleScript (const QString &script)
 
bool hasUserNotificationCenterSupport (void)
 

Static Public Member Functions

static MacNotificationHandlerinstance ()
 

Detailed Description

Macintosh-specific notification handler (supports UserNotificationCenter and Growl).

Definition at line 12 of file macnotificationhandler.h.

Member Function Documentation

◆ hasUserNotificationCenterSupport()

bool MacNotificationHandler::hasUserNotificationCenterSupport ( void  )

check if OS can handle UserNotifications

Definition at line 64 of file macnotificationhandler.mm.

Referenced by Notificator::Notificator().

◆ instance()

MacNotificationHandler * MacNotificationHandler::instance ( )
static

Definition at line 76 of file macnotificationhandler.mm.

Referenced by Notificator::Notificator().

◆ sendAppleScript()

void MacNotificationHandler::sendAppleScript ( const QString &  script)

executes AppleScript

Definition at line 51 of file macnotificationhandler.mm.

◆ showNotification()

void MacNotificationHandler::showNotification ( const QString &  title,
const QString &  text 
)

shows a 10.8+ UserNotification in the UserNotificationCenter

Definition at line 23 of file macnotificationhandler.mm.


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