mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
51ed9ec971
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
31 lines
862 B
C++
31 lines
862 B
C++
// Copyright (c) 2011-2013 The Bitcoin developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#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
|