Anoncoin  0.9.4
P2P Digital Currency
winshutdownmonitor.h
Go to the documentation of this file.
1 // Copyright (c) 2014 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef WINSHUTDOWNMONITOR_H
7 #define WINSHUTDOWNMONITOR_H
8 
9 #ifdef WIN32
10 #include <QByteArray>
11 #include <QString>
12 
13 #if QT_VERSION >= 0x050000
14 #include <windef.h> // for HWND
15 
16 #include <QAbstractNativeEventFilter>
17 
18 class WinShutdownMonitor : public QAbstractNativeEventFilter
19 {
20 public:
22  bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult);
23 
25  static void registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId);
26 };
27 #endif
28 #endif
29 
30 #endif // WINSHUTDOWNMONITOR_H