PRCYCoin
2.0.0.7rc1
P2P Digital Currency
src
qt
macnotificationhandler.h
Go to the documentation of this file.
1
// Copyright (c) 2011-2013 The Bitcoin developers
2
// Distributed under the MIT/X11 software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_MACNOTIFICATIONHANDLER_H
6
#define BITCOIN_QT_MACNOTIFICATIONHANDLER_H
7
8
#include <QObject>
9
12
class
MacNotificationHandler
:
public
QObject
13
{
14
Q_OBJECT
15
16
public
:
19
void
showNotification
(
const
QString& title,
const
QString& text);
20
22
void
sendAppleScript
(
const
QString& script);
23
25
bool
hasUserNotificationCenterSupport
(
void
);
26
static
MacNotificationHandler
*
instance
();
27
};
28
29
30
#endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H
MacNotificationHandler::instance
static MacNotificationHandler * instance()
Definition:
macnotificationhandler.mm:64
MacNotificationHandler::hasUserNotificationCenterSupport
bool hasUserNotificationCenterSupport(void)
check if OS can handle UserNotifications
Definition:
macnotificationhandler.mm:52
MacNotificationHandler
Macintosh-specific notification handler (supports UserNotificationCenter).
Definition:
macnotificationhandler.h:12
MacNotificationHandler::sendAppleScript
void sendAppleScript(const QString &script)
executes AppleScript
MacNotificationHandler::showNotification
void showNotification(const QString &title, const QString &text)
shows a 10.8+ UserNotification in the UserNotificationCenter
Definition:
macnotificationhandler.mm:25
Generated on Tue Apr 28 2026 00:02:54 for PRCYCoin by
1.8.17