You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
810 B
27 lines
810 B
// Copyright (c) 2011-2017 The Bitcoin Core developers |
|
// Distributed under the MIT software license, see the accompanying |
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php. |
|
|
|
#ifndef BITCOIN_QT_MACNOTIFICATIONHANDLER_H |
|
#define BITCOIN_QT_MACNOTIFICATIONHANDLER_H |
|
|
|
#include <QObject> |
|
|
|
/** Macintosh-specific notification handler (supports UserNotificationCenter). |
|
*/ |
|
class MacNotificationHandler : public QObject |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
/** shows a macOS 10.8+ UserNotification in the UserNotificationCenter |
|
*/ |
|
void showNotification(const QString &title, const QString &text); |
|
|
|
/** check if OS can handle UserNotifications */ |
|
bool hasUserNotificationCenterSupport(void); |
|
static MacNotificationHandler *instance(); |
|
}; |
|
|
|
|
|
#endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H
|
|
|