8#import <objc/runtime.h>
9#include <Cocoa/Cocoa.h>
16 return @"org.bitcoinfoundation.Bitcoin-Qt";
18 return [
self __bundleIdentifier];
26 if(this->hasUserNotificationCenterSupport()) {
30 [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: userNotification];
31 [userNotification release];
Macintosh-specific notification handler (supports UserNotificationCenter).
bool hasUserNotificationCenterSupport()
check if OS can handle UserNotifications
static MacNotificationHandler * instance()
void showNotification(const QString &title, const QString &text)
shows a macOS 10.8+ UserNotification in the UserNotificationCenter
static MacDockIconHandler * s_instance
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.