| 17 | }; |
| 18 | |
| 19 | EndSessionDetector::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 | |
| 28 | bool EndSessionDetector::nativeEventFilter(const QByteArray& eventType, void* message, long* result) |
| 29 | { |
nothing calls this directly
no test coverage detected