mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 09:21:21 -05:00
Styling + CFNotificationName -> CFStringRef
This commit is contained in:
parent
533136fb0e
commit
970525cfd4
@ -32,8 +32,9 @@ ScreenLockListenerMac* ScreenLockListenerMac::instance()
|
|||||||
return m_ptr;
|
return m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenLockListenerMac::notificationCenterCallBack(CFNotificationCenterRef /*center*/, void */*observer*/,
|
void ScreenLockListenerMac::notificationCenterCallBack(CFNotificationCenterRef, void*,
|
||||||
CFNotificationName /*name*/, const void */*object*/, CFDictionaryRef /*userInfo*/)
|
CFStringRef, const void*,
|
||||||
|
CFDictionaryRef)
|
||||||
{
|
{
|
||||||
instance()->onSignalReception();
|
instance()->onSignalReception();
|
||||||
}
|
}
|
||||||
@ -48,9 +49,9 @@ ScreenLockListenerMac::ScreenLockListenerMac(QWidget* parent)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CFNotificationCenterAddObserver(
|
CFNotificationCenterAddObserver(distCenter,
|
||||||
distCenter,
|
this,
|
||||||
this, &ScreenLockListenerMac::notificationCenterCallBack,
|
&ScreenLockListenerMac::notificationCenterCallBack,
|
||||||
screenIsLockedSignal,
|
screenIsLockedSignal,
|
||||||
nullptr,
|
nullptr,
|
||||||
CFNotificationSuspensionBehaviorDeliverImmediately);
|
CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||||
|
@ -29,8 +29,9 @@ class ScreenLockListenerMac: public ScreenLockListenerPrivate {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static ScreenLockListenerMac* instance();
|
static ScreenLockListenerMac* instance();
|
||||||
static void notificationCenterCallBack(CFNotificationCenterRef /*center*/, void */*observer*/,
|
static void notificationCenterCallBack(CFNotificationCenterRef center, void* observer,
|
||||||
CFNotificationName /*name*/, const void */*object*/, CFDictionaryRef /*userInfo*/);
|
CFStringRef name, const void* object,
|
||||||
|
CFDictionaryRef userInfo);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ScreenLockListenerMac(QWidget* parent = nullptr);
|
ScreenLockListenerMac(QWidget* parent = nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user