MythTV  master
mythfrontend/exitprompt.h
Go to the documentation of this file.
1 #include <QObject>
2 
3 #define NO_EXIT 0
4 #define QUIT 1
5 #define HALT 2
6 #define REBOOT 3
7 
8 class ExitPrompter : public QObject
9 {
10  Q_OBJECT
11 
12  public:
13  ExitPrompter() = default;
14  ~ExitPrompter() override = default;
15 
16  public slots:
17  static void quit(void);
18  static void halt(bool Confirmed = true);
19  static void reboot(bool Confirmed = true);
20  static void standby(void);
21  void handleExit(void);
22  void confirmHalt(void);
23  void confirmReboot(void);
24  void confirm(int Action);
25 };
~ExitPrompter() override=default
unsigned int slots[4]
Definition: element.c:38
static void standby(void)
static void quit(void)
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
void confirm(int Action)
static void halt(bool Confirmed=true)
static void reboot(bool Confirmed=true)