Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
IVT
src
gui
Qt
QtApplicationHandler.h
Go to the documentation of this file.
1
// ****************************************************************************
2
// Filename: QtApplicationHandler.h
3
// Author: Florian Hecht
4
// Date: 2008
5
// ****************************************************************************
6
7
8
#ifndef _QT_APPLICATION_HANDLER_H_
9
#define _QT_APPLICATION_HANDLER_H_
10
11
12
// ****************************************************************************
13
// Includes
14
// ****************************************************************************
15
16
#include <qobject.h>
17
#include "
Interfaces/ApplicationHandlerInterface.h
"
18
19
20
// ****************************************************************************
21
// Forward declarations
22
// ****************************************************************************
23
24
class
QApplication;
25
26
27
28
// ****************************************************************************
29
// CQtApplicationHandler
30
// ****************************************************************************
31
32
class
CQtApplicationHandler
:
public
QObject,
public
CApplicationHandlerInterface
33
{
34
Q_OBJECT
35
36
public
:
37
CQtApplicationHandler
(
int
argc = 0,
char
**argv = 0);
38
~CQtApplicationHandler
();
39
40
bool
ProcessEventsAndGetExit
();
41
void
Reset
();
42
43
static
CQtApplicationHandler
*
GetApplicationHandler
()
44
{
45
return
m_pQtApplicationHandler
;
46
}
47
48
public
slots:
49
void
Exit
() {
m_bExit
=
true
; }
50
51
private
:
52
bool
m_bExit
;
53
54
static
CQtApplicationHandler
*
m_pQtApplicationHandler
;
55
QApplication *
m_pApplication
;
56
};
57
58
59
60
#endif
/* _QT_APPLICATION_HANDLER_H_ */
CQtApplicationHandler::m_pQtApplicationHandler
static CQtApplicationHandler * m_pQtApplicationHandler
Definition:
QtApplicationHandler.h:54
CQtApplicationHandler::GetApplicationHandler
static CQtApplicationHandler * GetApplicationHandler()
Definition:
QtApplicationHandler.h:43
CQtApplicationHandler::~CQtApplicationHandler
~CQtApplicationHandler()
Definition:
QtApplicationHandler.cpp:44
CQtApplicationHandler::m_bExit
bool m_bExit
Definition:
QtApplicationHandler.h:52
CQtApplicationHandler::m_pApplication
QApplication * m_pApplication
Definition:
QtApplicationHandler.h:55
CApplicationHandlerInterface
Definition:
ApplicationHandlerInterface.h:51
CQtApplicationHandler::Exit
void Exit()
Definition:
QtApplicationHandler.h:49
CQtApplicationHandler::CQtApplicationHandler
CQtApplicationHandler(int argc=0, char **argv=0)
Definition:
QtApplicationHandler.cpp:18
CQtApplicationHandler
Definition:
QtApplicationHandler.h:32
ApplicationHandlerInterface.h
CQtApplicationHandler::ProcessEventsAndGetExit
bool ProcessEventsAndGetExit()
Definition:
QtApplicationHandler.cpp:52
CQtApplicationHandler::Reset
void Reset()
Definition:
QtApplicationHandler.cpp:69
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28