forked from DigiByte-Core/digibyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacnotificationhandler.h
More file actions
27 lines (21 loc) · 864 Bytes
/
macnotificationhandler.h
File metadata and controls
27 lines (21 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Copyright (c) 2014-2025 The DigiByte Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DIGIBYTE_QT_MACNOTIFICATIONHANDLER_H
#define DIGIBYTE_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();
static MacNotificationHandler *instance();
};
#endif // DIGIBYTE_QT_MACNOTIFICATIONHANDLER_H