MythTV  master
Public Member Functions | Public Attributes | List of all members
DatabaseParams Class Reference

Structure containing the basic Database parameters. More...

#include <mythdbparams.h>

Public Member Functions

 DatabaseParams ()
 
void LoadDefaults (void)
 Load sensible connection defaults. More...
 
bool IsValid (const QString &source=QString("Unknown")) const
 
bool operator== (const DatabaseParams &other) const
 
bool operator!= (const DatabaseParams &other) const
 

Public Attributes

QString dbHostName
 database server More...
 
bool dbHostPing
 Can we test connectivity using ping? More...
 
int dbPort
 database port More...
 
QString dbUserName
 DB user name. More...
 
QString dbPassword
 DB password. More...
 
QString dbName
 database name More...
 
QString dbType
 database type (MySQL, Postgres, etc.) More...
 
bool localEnabled
 true if localHostName is not default More...
 
QString localHostName
 name used for loading/saving settings More...
 
bool wolEnabled
 true if wake-on-lan params are used More...
 
int wolReconnect
 seconds to wait for reconnect More...
 
int wolRetry
 times to retry to reconnect More...
 
QString wolCommand
 command to use for wake-on-lan More...
 
bool forceSave
 set to true to force a save of the settings file More...
 
QString verVersion
 git version string More...
 
QString verBranch
 git branch More...
 
QString verProtocol
 backend protocol More...
 
QString verBinary
 binary library version More...
 
QString verSchema
 core schema version More...
 

Detailed Description

Structure containing the basic Database parameters.

Definition at line 9 of file mythdbparams.h.

Constructor & Destructor Documentation

◆ DatabaseParams()

DatabaseParams::DatabaseParams ( )
inline

Definition at line 12 of file mythdbparams.h.

Member Function Documentation

◆ LoadDefaults()

void DatabaseParams::LoadDefaults ( void  )

Load sensible connection defaults.

Definition at line 5 of file mythdbparams.cpp.

Referenced by MythContextPrivate::LoadDatabaseSettings().

◆ IsValid()

bool DatabaseParams::IsValid ( const QString &  source = QString("Unknown")) const

Definition at line 32 of file mythdbparams.cpp.

Referenced by MythContextPrivate::LoadDatabaseSettings().

◆ operator==()

bool DatabaseParams::operator== ( const DatabaseParams other) const

Definition at line 61 of file mythdbparams.cpp.

◆ operator!=()

bool DatabaseParams::operator!= ( const DatabaseParams other) const
inline

Definition at line 18 of file mythdbparams.h.

Member Data Documentation

◆ dbHostName

QString DatabaseParams::dbHostName

◆ dbHostPing

bool DatabaseParams::dbHostPing

◆ dbPort

int DatabaseParams::dbPort

◆ dbUserName

QString DatabaseParams::dbUserName

◆ dbPassword

QString DatabaseParams::dbPassword

◆ dbName

QString DatabaseParams::dbName

◆ dbType

QString DatabaseParams::dbType

database type (MySQL, Postgres, etc.)

Definition at line 27 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), Myth::GetConnectionInfo(), LoadDefaults(), operator==(), and DatabaseSettings::Save().

◆ localEnabled

bool DatabaseParams::localEnabled

◆ localHostName

QString DatabaseParams::localHostName

◆ wolEnabled

bool DatabaseParams::wolEnabled

◆ wolReconnect

int DatabaseParams::wolReconnect

◆ wolRetry

int DatabaseParams::wolRetry

◆ wolCommand

QString DatabaseParams::wolCommand

◆ forceSave

bool DatabaseParams::forceSave

set to true to force a save of the settings file

Definition at line 37 of file mythdbparams.h.

Referenced by MythContextPrivate::FindDatabase(), MythContextPrivate::LoadDatabaseSettings(), and LoadDefaults().

◆ verVersion

QString DatabaseParams::verVersion

git version string

Definition at line 39 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), and LoadDefaults().

◆ verBranch

QString DatabaseParams::verBranch

git branch

Definition at line 40 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), and LoadDefaults().

◆ verProtocol

QString DatabaseParams::verProtocol

backend protocol

Definition at line 41 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), and LoadDefaults().

◆ verBinary

QString DatabaseParams::verBinary

binary library version

Definition at line 42 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), and LoadDefaults().

◆ verSchema

QString DatabaseParams::verSchema

core schema version

Definition at line 43 of file mythdbparams.h.

Referenced by MythXMLClient::GetConnectionInfo(), and LoadDefaults().


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