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 HandleExit();
14 
15  protected slots:
16  void DoQuit();
17  void DoHalt(bool Confirmed);
18  void DoHalt() { DoHalt(true); }
19  void DoReboot(bool Confirmed);
20  void DoReboot() { DoReboot(true); }
21  void DoStandby();
22  void DoSuspend(bool Confirmed);
23  void DoSuspend() { DoSuspend(true); }
24  void ConfirmHalt();
25  void ConfirmReboot();
26  void ConfirmSuspend();
28  void MainDialogClosed(const QString& /*unused*/, int Id);
29 
30  private:
31  MythPower* m_power { nullptr };
32  bool m_confirm { true };
33  QString m_haltCommand;
34  QString m_rebootCommand;
36 };
ExitPrompter::m_confirm
bool m_confirm
Definition: mythfrontend/exitprompt.h:32
ExitPrompter::ConfirmHalt
void ConfirmHalt()
Definition: mythfrontend/exitprompt.cpp:39
MythPower
Definition: mythpower.h:19
ExitPrompter::m_power
MythPower * m_power
Definition: mythfrontend/exitprompt.h:31
ExitPrompter
Definition: mythfrontend/exitprompt.h:5
ExitPrompter::~ExitPrompter
~ExitPrompter() override
Definition: mythfrontend/exitprompt.cpp:26
ExitPrompter::DoReboot
void DoReboot()
Definition: mythfrontend/exitprompt.h:20
ExitPrompter::DoQuit
void DoQuit()
Definition: mythfrontend/exitprompt.cpp:33
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
ExitPrompter::m_suspendCommand
QString m_suspendCommand
Definition: mythfrontend/exitprompt.h:35
ExitPrompter::MainDialogClosed
void MainDialogClosed(const QString &, int Id)
Definition: mythfrontend/exitprompt.cpp:149
ExitPrompter::m_rebootCommand
QString m_rebootCommand
Definition: mythfrontend/exitprompt.h:34
ExitPrompter::DoStandby
void DoStandby()
Definition: mythfrontend/exitprompt.cpp:143
MythPower::Feature
Feature
Definition: mythpower.h:35
ExitPrompter::Confirm
void Confirm(MythPower::Feature Action)
Definition: mythfrontend/exitprompt.cpp:278
ExitPrompter::DoSuspend
void DoSuspend()
Definition: mythfrontend/exitprompt.h:23
ExitPrompter::m_haltCommand
QString m_haltCommand
Definition: mythfrontend/exitprompt.h:33
ExitPrompter::DoHalt
void DoHalt()
Definition: mythfrontend/exitprompt.h:18
ExitPrompter::ConfirmReboot
void ConfirmReboot()
Definition: mythfrontend/exitprompt.cpp:76
ExitPrompter::HandleExit
void HandleExit()
Definition: mythfrontend/exitprompt.cpp:157
mythpower.h
ExitPrompter::ConfirmSuspend
void ConfirmSuspend()
Definition: mythfrontend/exitprompt.cpp:112
ExitPrompter::ExitPrompter
ExitPrompter()
Definition: mythfrontend/exitprompt.cpp:15