MCPcopy Create free account
hub / github.com/Atarity/Lightpack / EndSessionDetector

Method EndSessionDetector

Software/src/EndSessionDetector.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19EndSessionDetector::EndSessionDetector()
20 : m_isDestroyed(false)
21{
22#ifdef Q_OS_WIN
23 if (WTSRegisterSessionNotification(getLightpackApp()->getMainWindowHandle(), NOTIFY_FOR_THIS_SESSION) == FALSE)
24 throw register_exception();
25#endif
26}
27
28bool EndSessionDetector::nativeEventFilter(const QByteArray& eventType, void* message, long* result)
29{

Callers

nothing calls this directly

Calls 2

register_exceptionClass · 0.85
getMainWindowHandleMethod · 0.80

Tested by

no test coverage detected