MythTV  master
mythtv-setup/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(void);
14  ~ExitPrompter(void) override;
15 
16  void customEvent(QEvent *event) override; // QObject
17 
18  public slots:
19  void masterPromptExit(void);
20  void handleExit(void);
21  static void quit(void);
22 
23  private:
24  ExitPrompter(const ExitPrompter &);
25 
26  private:
27  struct ExitPrompterPrivate *m_d {nullptr};
28 };
unsigned int slots[4]
Definition: element.c:38
static void quit(void)
void customEvent(QEvent *event) override
struct ExitPrompterPrivate * m_d