MythTV
master
mythtv
programs
mythtv-setup
exitprompt.h
Go to the documentation of this file.
1
#include <QObject>
2
3
enum
exit_actions
: std::uint8_t {
4
NO_EXIT
= 0,
5
QUIT
= 1,
6
HALT
= 2,
7
REBOOT
= 3
8
};
9
10
class
ExitPrompter
:
public
QObject
11
{
12
Q_OBJECT
13
14
public
:
15
ExitPrompter
(
void
);
16
~ExitPrompter
(
void
)
override
;
17
18
void
customEvent
(QEvent *event)
override
;
// QObject
19
20
public
slots:
21
void
masterPromptExit
(
void
);
22
void
handleExit
(
void
);
23
static
void
quit
(
void
);
24
25
private
:
26
ExitPrompter
(
const
ExitPrompter
&);
27
28
private
:
29
struct
ExitPrompterPrivate
*
m_d
{
nullptr
};
30
};
ExitPrompter::m_d
struct ExitPrompterPrivate * m_d
Definition:
exitprompt.h:29
ExitPrompter
Definition:
exitprompt.h:6
exit_actions
exit_actions
Definition:
exitprompt.h:3
ExitPrompter::~ExitPrompter
~ExitPrompter() override
Definition:
exitprompt.cpp:27
QUIT
@ QUIT
Definition:
exitprompt.h:5
ExitPrompter::customEvent
void customEvent(QEvent *event) override
Definition:
exitprompt.cpp:119
NO_EXIT
@ NO_EXIT
Definition:
exitprompt.h:4
ExitPrompterPrivate
Definition:
exitprompt.cpp:17
ExitPrompter::handleExit
void handleExit(void)
Definition:
exitprompt.cpp:65
REBOOT
@ REBOOT
Definition:
exitprompt.h:7
HALT
@ HALT
Definition:
exitprompt.h:6
ExitPrompter::masterPromptExit
void masterPromptExit(void)
Definition:
exitprompt.cpp:37
ExitPrompter::ExitPrompter
ExitPrompter()
Definition:
exitprompt.cpp:16
ExitPrompter::quit
static void quit(void)
Definition:
exitprompt.cpp:146
Generated on Sun Jan 5 2025 03:16:29 for MythTV by
1.8.17