MythTV  master
mythfrontend/exitprompt.h
Go to the documentation of this file.
1 // MythTV
2 #include "mythpower.h"
3 
4 class ExitPrompter : public QObject
5 {
6  Q_OBJECT
7 
8  public:
9  ExitPrompter();
10  ~ExitPrompter() override;
11 
12  public slots:
13  void DoQuit(void);
14  void DoHalt(bool Confirmed = true);
15  void DoReboot(bool Confirmed = true);
16  void DoStandby(void);
17  void DoSuspend(bool Confirmed = true);
18  void HandleExit(void);
19  void ConfirmHalt(void);
20  void ConfirmReboot(void);
21  void ConfirmSuspend(void);
23 
24  private:
25  MythPower* m_power { nullptr };
26  QString m_haltCommand;
27  QString m_rebootCommand;
29 };
unsigned int slots[4]
Definition: element.c:38
void DoReboot(bool Confirmed=true)
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
void DoSuspend(bool Confirmed=true)
void DoHalt(bool Confirmed=true)
void Confirm(MythPower::Feature Action)