Raven Core
3.0.0
P2P Digital Currency
src
qt
winshutdownmonitor.h
Go to the documentation of this file.
1
// Copyright (c) 2014 The Bitcoin Core developers
2
// Copyright (c) 2017-2019 The Raven Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef RAVEN_QT_WINSHUTDOWNMONITOR_H
7
#define RAVEN_QT_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 // RAVEN_QT_WINSHUTDOWNMONITOR_H
Generated on Mon Jul 29 2019 02:32:20 for Raven Core by
1.8.13