MythTV  master
Public Slots | Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | List of all members
ExitPrompter Class Reference

#include <exitprompt.h>

Inheritance diagram for ExitPrompter:
Inheritance graph
[legend]
Collaboration diagram for ExitPrompter:
Collaboration graph
[legend]

Public Slots

void HandleExit ()
 
void masterPromptExit (void)
 
void handleExit (void)
 
static void quit (void)
 

Public Member Functions

 ExitPrompter ()
 
 ~ExitPrompter () override
 
 ExitPrompter (void)
 
 ~ExitPrompter (void) override
 
void customEvent (QEvent *event) override
 

Protected Slots

void DoQuit ()
 
void DoHalt (bool Confirmed)
 
void DoHalt ()
 
void DoReboot (bool Confirmed)
 
void DoReboot ()
 
void DoStandby ()
 
void DoSuspend (bool Confirmed)
 
void DoSuspend ()
 
void ConfirmHalt ()
 
void ConfirmReboot ()
 
void ConfirmSuspend ()
 
void Confirm (MythPower::Feature Action)
 
void MainDialogClosed (const QString &, int Id)
 

Private Member Functions

 ExitPrompter (const ExitPrompter &)
 

Private Attributes

MythPowerm_power { nullptr }
 
bool m_confirm { true }
 
QString m_haltCommand
 
QString m_rebootCommand
 
QString m_suspendCommand
 
MythDialogBoxm_dialog { nullptr }
 
struct ExitPrompterPrivatem_d {nullptr}
 

Detailed Description

Definition at line 6 of file mythfrontend/exitprompt.h.

Constructor & Destructor Documentation

◆ ExitPrompter() [1/3]

ExitPrompter::ExitPrompter ( )

Definition at line 15 of file mythfrontend/exitprompt.cpp.

◆ ~ExitPrompter() [1/2]

ExitPrompter::~ExitPrompter ( )
override

Definition at line 26 of file mythfrontend/exitprompt.cpp.

◆ ExitPrompter() [2/3]

ExitPrompter::ExitPrompter ( void  )

◆ ~ExitPrompter() [2/2]

ExitPrompter::~ExitPrompter ( void  )
override

◆ ExitPrompter() [3/3]

ExitPrompter::ExitPrompter ( const ExitPrompter )
private

Member Function Documentation

◆ HandleExit

void ExitPrompter::HandleExit ( )
slot

Definition at line 161 of file mythfrontend/exitprompt.cpp.

◆ DoQuit

void ExitPrompter::DoQuit ( )
protectedslot

Definition at line 37 of file mythfrontend/exitprompt.cpp.

Referenced by Confirm(), and HandleExit().

◆ DoHalt [1/2]

void ExitPrompter::DoHalt ( bool  Confirmed)
protectedslot

Definition at line 48 of file mythfrontend/exitprompt.cpp.

◆ DoHalt [2/2]

void ExitPrompter::DoHalt ( )
inlineprotectedslot

Definition at line 20 of file mythfrontend/exitprompt.h.

Referenced by Confirm(), DoHalt(), and HandleExit().

◆ DoReboot [1/2]

void ExitPrompter::DoReboot ( bool  Confirmed)
protectedslot

Definition at line 85 of file mythfrontend/exitprompt.cpp.

◆ DoReboot [2/2]

void ExitPrompter::DoReboot ( )
inlineprotectedslot

Definition at line 22 of file mythfrontend/exitprompt.h.

Referenced by Confirm(), DoReboot(), and HandleExit().

◆ DoStandby

void ExitPrompter::DoStandby ( )
protectedslot

Definition at line 147 of file mythfrontend/exitprompt.cpp.

Referenced by HandleExit().

◆ DoSuspend [1/2]

void ExitPrompter::DoSuspend ( bool  Confirmed)
protectedslot

Definition at line 121 of file mythfrontend/exitprompt.cpp.

◆ DoSuspend [2/2]

void ExitPrompter::DoSuspend ( )
inlineprotectedslot

Definition at line 25 of file mythfrontend/exitprompt.h.

Referenced by Confirm(), DoSuspend(), and HandleExit().

◆ ConfirmHalt

void ExitPrompter::ConfirmHalt ( )
protectedslot

Definition at line 43 of file mythfrontend/exitprompt.cpp.

Referenced by HandleExit().

◆ ConfirmReboot

void ExitPrompter::ConfirmReboot ( )
protectedslot

Definition at line 80 of file mythfrontend/exitprompt.cpp.

Referenced by HandleExit().

◆ ConfirmSuspend

void ExitPrompter::ConfirmSuspend ( )
protectedslot

Definition at line 116 of file mythfrontend/exitprompt.cpp.

Referenced by HandleExit().

◆ Confirm

void ExitPrompter::Confirm ( MythPower::Feature  Action)
protectedslot

Definition at line 282 of file mythfrontend/exitprompt.cpp.

Referenced by ConfirmHalt(), ConfirmReboot(), and ConfirmSuspend().

◆ MainDialogClosed

void ExitPrompter::MainDialogClosed ( const QString &  ,
int  Id 
)
protectedslot

Definition at line 153 of file mythfrontend/exitprompt.cpp.

Referenced by HandleExit().

◆ customEvent()

void ExitPrompter::customEvent ( QEvent *  event)
override

Definition at line 94 of file mythtv-setup/exitprompt.cpp.

◆ masterPromptExit

void ExitPrompter::masterPromptExit ( void  )
slot

Definition at line 35 of file mythtv-setup/exitprompt.cpp.

Referenced by customEvent(), and handleExit().

◆ handleExit

void ExitPrompter::handleExit ( void  )
slot

Definition at line 61 of file mythtv-setup/exitprompt.cpp.

Referenced by SetupMenuCallback().

◆ quit

void ExitPrompter::quit ( void  )
staticslot

Definition at line 121 of file mythtv-setup/exitprompt.cpp.

Referenced by customEvent(), handleExit(), and masterPromptExit().

Member Data Documentation

◆ m_power

MythPower* ExitPrompter::m_power { nullptr }
private

Definition at line 33 of file mythfrontend/exitprompt.h.

Referenced by DoHalt(), DoReboot(), DoSuspend(), HandleExit(), and ~ExitPrompter().

◆ m_confirm

bool ExitPrompter::m_confirm { true }
private

Definition at line 34 of file mythfrontend/exitprompt.h.

Referenced by HandleExit().

◆ m_haltCommand

QString ExitPrompter::m_haltCommand
private

Definition at line 35 of file mythfrontend/exitprompt.h.

Referenced by DoHalt(), and HandleExit().

◆ m_rebootCommand

QString ExitPrompter::m_rebootCommand
private

Definition at line 36 of file mythfrontend/exitprompt.h.

Referenced by DoReboot(), and HandleExit().

◆ m_suspendCommand

QString ExitPrompter::m_suspendCommand
private

Definition at line 37 of file mythfrontend/exitprompt.h.

Referenced by DoSuspend(), and HandleExit().

◆ m_dialog

MythDialogBox* ExitPrompter::m_dialog { nullptr }
private

Definition at line 38 of file mythfrontend/exitprompt.h.

Referenced by Confirm(), HandleExit(), and ~ExitPrompter().

◆ m_d

struct ExitPrompterPrivate* ExitPrompter::m_d {nullptr}
private

Definition at line 27 of file mythtv-setup/exitprompt.h.

Referenced by handleExit(), and masterPromptExit().


The documentation for this class was generated from the following files: