MythTV  master
Signals | Public Member Functions | Protected Attributes | List of all members
DatabaseSettings Class Reference

#include <dbsettings.h>

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

Signals

void isClosing (void)
 
- Signals inherited from StandardSetting
void valueChanged (const QString &)
 
void valueChanged (StandardSetting *)
 
void ShouldRedraw (StandardSetting *)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 

Public Member Functions

 DatabaseSettings (const QString &DBhostOverride=QString())
 
 ~DatabaseSettings ()
 
void Load (void) override
 
void Save (QString)
 
void Save (void) override
 
- Public Member Functions inherited from GroupSetting
 GroupSetting ()=default
 
void edit (MythScreenType *screen) override
 
void resultEdit (DialogCompletionEvent *) override
 
virtual void applyChange ()
 
void updateButton (MythUIButtonListItem *item) override
 This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look. More...
 
virtual bool canDelete (void)
 
virtual void deleteEntry (void)
 
- Public Member Functions inherited from StandardSetting
virtual void setLabel (QString str)
 
QString getLabel (void) const
 
virtual void setHelpText (const QString &str)
 
QString getHelpText (void) const
 
virtual void setName (const QString &name)
 
QString getName (void) const
 
StandardSettingbyName (const QString &name)
 
bool isVisible (void) const
 
bool isEnabled () const
 
bool haveChanged ()
 Return true if the setting have changed or any of its children. More...
 
void setChanged (bool changed)
 
StandardSettinggetParent () const
 
virtual QString getValue (void) const
 
void SetDBValue (const QString &val) override
 
QString GetDBValue (void) const override
 
MythUIButtonListItemcreateButton (MythUIButtonList *list)
 
virtual void addChild (StandardSetting *child)
 
virtual void removeChild (StandardSetting *child)
 
virtual QList< StandardSetting * > * getSubSettings ()
 
virtual bool haveSubSettings ()
 
virtual void clearSettings ()
 
void clearTargetedSettings (const QString &value)
 
virtual void Open (void)
 
virtual void Close (void)
 
StorageGetStorage (void) const
 
void addTargetedChild (const QString &value, StandardSetting *setting)
 
void addTargetedChildren (const QString &value, std::initializer_list< StandardSetting * > settings)
 
void removeTargetedChild (const QString &value, StandardSetting *child)
 
virtual bool keyPressEvent (QKeyEvent *)
 
void MoveToThread (QThread *thread)
 
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default
 

Protected Attributes

TransTextEditSettingm_dbHostName {nullptr}
 
TransMythUICheckBoxSettingm_dbHostPing {nullptr}
 
TransTextEditSettingm_dbPort {nullptr}
 
TransTextEditSettingm_dbName {nullptr}
 
TransTextEditSettingm_dbUserName {nullptr}
 
TransTextEditSettingm_dbPassword {nullptr}
 
TransMythUICheckBoxSettingm_localEnabled {nullptr}
 
TransTextEditSettingm_localHostName {nullptr}
 
TransMythUICheckBoxSettingm_wolEnabled {nullptr}
 
TransMythUISpinBoxSettingm_wolReconnect {nullptr}
 
TransMythUISpinBoxSettingm_wolRetry {nullptr}
 
TransTextEditSettingm_wolCommand {nullptr}
 
QString m_DBhostOverride
 
- Protected Attributes inherited from StandardSetting
QString m_settingValue
 
bool m_enabled {true}
 
QString m_label
 
QString m_helptext
 
QString m_name
 
bool m_visible {true}
 

Additional Inherited Members

- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
void setVisible (bool visible)
 
virtual void setValue (const QString &newValue)
 
virtual void setValue (int newValue)
 
virtual void childChanged (StandardSetting *)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
virtual ~StandardSetting ()
 
void setParent (StandardSetting *parent)
 

Detailed Description

Definition at line 10 of file dbsettings.h.

Constructor & Destructor Documentation

◆ DatabaseSettings()

DatabaseSettings::DatabaseSettings ( const QString &  DBhostOverride = QString())
explicit

Definition at line 12 of file dbsettings.cpp.

◆ ~DatabaseSettings()

DatabaseSettings::~DatabaseSettings ( )

Definition at line 205 of file dbsettings.cpp.

Member Function Documentation

◆ Load()

void DatabaseSettings::Load ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 135 of file dbsettings.cpp.

◆ Save() [1/2]

void DatabaseSettings::Save ( QString  )
inline

Definition at line 19 of file dbsettings.h.

◆ Save() [2/2]

void DatabaseSettings::Save ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 180 of file dbsettings.cpp.

◆ isClosing

void DatabaseSettings::isClosing ( void  )
signal

Member Data Documentation

◆ m_dbHostName

TransTextEditSetting* DatabaseSettings::m_dbHostName {nullptr}
protected

Definition at line 26 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_dbHostPing

TransMythUICheckBoxSetting* DatabaseSettings::m_dbHostPing {nullptr}
protected

Definition at line 27 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_dbPort

TransTextEditSetting* DatabaseSettings::m_dbPort {nullptr}
protected

Definition at line 28 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_dbName

TransTextEditSetting* DatabaseSettings::m_dbName {nullptr}
protected

Definition at line 29 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_dbUserName

TransTextEditSetting* DatabaseSettings::m_dbUserName {nullptr}
protected

Definition at line 30 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_dbPassword

TransTextEditSetting* DatabaseSettings::m_dbPassword {nullptr}
protected

Definition at line 31 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_localEnabled

TransMythUICheckBoxSetting* DatabaseSettings::m_localEnabled {nullptr}
protected

Definition at line 32 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_localHostName

TransTextEditSetting* DatabaseSettings::m_localHostName {nullptr}
protected

Definition at line 33 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_wolEnabled

TransMythUICheckBoxSetting* DatabaseSettings::m_wolEnabled {nullptr}
protected

Definition at line 34 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_wolReconnect

TransMythUISpinBoxSetting* DatabaseSettings::m_wolReconnect {nullptr}
protected

Definition at line 35 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_wolRetry

TransMythUISpinBoxSetting* DatabaseSettings::m_wolRetry {nullptr}
protected

Definition at line 36 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_wolCommand

TransTextEditSetting* DatabaseSettings::m_wolCommand {nullptr}
protected

Definition at line 37 of file dbsettings.h.

Referenced by DatabaseSettings(), Load(), and Save().

◆ m_DBhostOverride

QString DatabaseSettings::m_DBhostOverride
protected

Definition at line 38 of file dbsettings.h.

Referenced by DatabaseSettings(), and Load().


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