/
qgscrashhandler.h
46 lines (38 loc) · 1.4 KB
/
qgscrashhandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
qgscrashhandler.h - QgsCrashHandler
---------------------
begin : 23.4.2017
copyright : (C) 2017 by Nathan Woodrow
email : woodrow.nathan@gmail.com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSCRASHHANDLER_H
#define QGSCRASHHANDLER_H
#include "qgis.h"
#include "qgis_app.h"
#ifdef WIN32
#include <windows.h>
#include <dbghelp.h>
#endif
/**
* Utility object to handle crashes in QGIS.
*/
class APP_EXPORT QgsCrashHandler
{
public:
/**
* This class doesn't need to be created by anyone as is only used to handle
* crashes in the application.
*/
QgsCrashHandler() = delete;
#ifdef _MSC_VER
static LONG WINAPI handle( LPEXCEPTION_POINTERS ExceptionInfo );
#endif
};
#endif // QGSCRASHHANDLER_H