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

#include <myth.h>

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

Public Member Functions

Q_INVOKABLE Myth (QObject *parent=nullptr)
 
DTC::ConnectionInfoGetConnectionInfo (const QString &Pin) override
 
QString GetHostName () override
 
QStringList GetHosts () override
 
QStringList GetKeys () override
 
DTC::StorageGroupDirListGetStorageGroupDirs (const QString &GroupName, const QString &HostName) override
 
bool AddStorageGroupDir (const QString &GroupName, const QString &DirName, const QString &HostName) override
 
bool RemoveStorageGroupDir (const QString &GroupName, const QString &DirName, const QString &HostName) override
 
DTC::TimeZoneInfoGetTimeZone () override
 
QString GetFormatDate (QDateTime Date, bool ShortDate) override
 
QString GetFormatDateTime (QDateTime DateTime, bool ShortDate) override
 
QString GetFormatTime (QDateTime Time) override
 
QDateTime ParseISODateString (const QString &DateTime) override
 
DTC::LogMessageListGetLogs (const QString &HostName, const QString &Application, int PID, int TID, const QString &Thread, const QString &Filename, int Line, const QString &Function, const QDateTime &FromTime, const QDateTime &ToTime, const QString &Level, const QString &MsgContains) override
 
DTC::FrontendListGetFrontends (bool OnLine) override
 
QString GetSetting (const QString &HostName, const QString &Key, const QString &Default) override
 
DTC::SettingListGetSettingList (const QString &HostName) override
 
bool PutSetting (const QString &HostName, const QString &Key, const QString &Value) override
 
bool ChangePassword (const QString &UserName, const QString &OldPassword, const QString &NewPassword) override
 
bool TestDBSettings (const QString &HostName, const QString &UserName, const QString &Password, const QString &DBName, int dbPort) override
 
bool SendMessage (const QString &Message, const QString &Address, int udpPort, int Timeout) override
 
bool SendNotification (bool Error, const QString &Type, const QString &Message, const QString &Origin, const QString &Description, const QString &Image, const QString &Extra, const QString &ProgressText, float Progress, int Duration, bool Fullscreen, uint Visibility, uint Priority, const QString &Address, int udpPort) override
 
bool BackupDatabase (void) override
 
bool CheckDatabase (bool Repair) override
 
bool DelayShutdown (void) override
 
bool ProfileSubmit (void) override
 
bool ProfileDelete (void) override
 
QString ProfileURL (void) override
 
QString ProfileUpdated (void) override
 
QString ProfileText (void) override
 
DTC::BackendInfoGetBackendInfo (void) override
 
bool ManageDigestUser (const QString &Action, const QString &UserName, const QString &Password, const QString &NewPassword, const QString &AdminPassword) override
 
bool ManageUrlProtection (const QString &Services, const QString &AdminPassword) override
 
- Public Member Functions inherited from MythServices
 MythServices (QObject *parent=nullptr)
 
- Public Member Functions inherited from Service
 Service (QObject *parent=nullptr)
 
virtual QVariant ConvertToVariant (int nType, void *pValue)
 
virtual void * ConvertToParameterPtr (int nTypeId, const QString &sParamType, void *pParam, const QString &sValue)
 

Additional Inherited Members

- Public Slots inherited from MythServices
- Static Public Member Functions inherited from Service
static bool ToBool (const QString &sVal)
 
- Public Attributes inherited from Service
QList< QString > m_parsedParams
 

Detailed Description

Definition at line 34 of file myth.h.

Constructor & Destructor Documentation

◆ Myth()

Q_INVOKABLE Myth::Myth ( QObject *  parent = nullptr)
inlineexplicit

Definition at line 40 of file myth.h.

Member Function Documentation

◆ GetConnectionInfo()

DTC::ConnectionInfo * Myth::GetConnectionInfo ( const QString &  Pin)
overridevirtual

Implements MythServices.

Definition at line 55 of file myth.cpp.

Referenced by ScriptableMyth::GetConnectionInfo().

◆ GetHostName()

QString Myth::GetHostName ( void  )
overridevirtual

Implements MythServices.

Definition at line 136 of file myth.cpp.

Referenced by ScriptableMyth::GetHostName().

◆ GetHosts()

QStringList Myth::GetHosts ( )
overridevirtual

Implements MythServices.

Definition at line 147 of file myth.cpp.

Referenced by ScriptableMyth::GetHosts().

◆ GetKeys()

QStringList Myth::GetKeys ( )
overridevirtual

Implements MythServices.

Definition at line 182 of file myth.cpp.

Referenced by ScriptableMyth::GetKeys().

◆ GetStorageGroupDirs()

DTC::StorageGroupDirList * Myth::GetStorageGroupDirs ( const QString &  GroupName,
const QString &  HostName 
)
overridevirtual

Implements MythServices.

Definition at line 216 of file myth.cpp.

Referenced by ScriptableMyth::GetStorageGroupDirs().

◆ AddStorageGroupDir()

bool Myth::AddStorageGroupDir ( const QString &  GroupName,
const QString &  DirName,
const QString &  HostName 
)
overridevirtual

Implements MythServices.

Definition at line 296 of file myth.cpp.

Referenced by ScriptableMyth::AddStorageGroupDir().

◆ RemoveStorageGroupDir()

bool Myth::RemoveStorageGroupDir ( const QString &  GroupName,
const QString &  DirName,
const QString &  HostName 
)
overridevirtual

Implements MythServices.

Definition at line 358 of file myth.cpp.

Referenced by ScriptableMyth::RemoveStorageGroupDir().

◆ GetTimeZone()

DTC::TimeZoneInfo * Myth::GetTimeZone ( )
overridevirtual

Implements MythServices.

Definition at line 399 of file myth.cpp.

Referenced by ScriptableMyth::GetTimeZone().

◆ GetFormatDate()

QString Myth::GetFormatDate ( QDateTime  Date,
bool  ShortDate 
)
overridevirtual

Implements MythServices.

Definition at line 414 of file myth.cpp.

Referenced by ScriptableMyth::GetFormatDate().

◆ GetFormatDateTime()

QString Myth::GetFormatDateTime ( QDateTime  DateTime,
bool  ShortDate 
)
overridevirtual

Implements MythServices.

Definition at line 427 of file myth.cpp.

Referenced by ScriptableMyth::GetFormatDateTime().

◆ GetFormatTime()

QString Myth::GetFormatTime ( QDateTime  Time)
overridevirtual

Implements MythServices.

Definition at line 440 of file myth.cpp.

Referenced by ScriptableMyth::GetFormatTime().

◆ ParseISODateString()

QDateTime Myth::ParseISODateString ( const QString &  DateTime)
overridevirtual

Implements MythServices.

Definition at line 449 of file myth.cpp.

Referenced by ScriptableMyth::ParseISODateString().

◆ GetLogs()

DTC::LogMessageList * Myth::GetLogs ( const QString &  HostName,
const QString &  Application,
int  PID,
int  TID,
const QString &  Thread,
const QString &  Filename,
int  Line,
const QString &  Function,
const QDateTime &  FromTime,
const QDateTime &  ToTime,
const QString &  Level,
const QString &  MsgContains 
)
overridevirtual

Implements MythServices.

Definition at line 463 of file myth.cpp.

Referenced by ScriptableMyth::GetLogs().

◆ GetFrontends()

DTC::FrontendList * Myth::GetFrontends ( bool  OnLine)
overridevirtual

Implements MythServices.

Definition at line 595 of file myth.cpp.

Referenced by ScriptableMyth::GetFrontends().

◆ GetSetting()

QString Myth::GetSetting ( const QString &  HostName,
const QString &  Key,
const QString &  Default 
)
overridevirtual

Implements MythServices.

Definition at line 622 of file myth.cpp.

Referenced by ScriptableMyth::GetSetting().

◆ GetSettingList()

DTC::SettingList * Myth::GetSettingList ( const QString &  HostName)
overridevirtual

Implements MythServices.

Definition at line 660 of file myth.cpp.

Referenced by ScriptableMyth::GetSettingList().

◆ PutSetting()

bool Myth::PutSetting ( const QString &  HostName,
const QString &  Key,
const QString &  Value 
)
overridevirtual

Implements MythServices.

Definition at line 713 of file myth.cpp.

Referenced by ScriptableMyth::PutSetting().

◆ ChangePassword()

bool Myth::ChangePassword ( const QString &  UserName,
const QString &  OldPassword,
const QString &  NewPassword 
)
overridevirtual

Implements MythServices.

Definition at line 729 of file myth.cpp.

◆ TestDBSettings()

bool Myth::TestDBSettings ( const QString &  HostName,
const QString &  UserName,
const QString &  Password,
const QString &  DBName,
int  dbPort 
)
overridevirtual

Implements MythServices.

Definition at line 744 of file myth.cpp.

Referenced by ScriptableMyth::TestDBSettings().

◆ SendMessage()

bool Myth::SendMessage ( const QString &  Message,
const QString &  Address,
int  udpPort,
int  Timeout 
)
overridevirtual

Implements MythServices.

Definition at line 770 of file myth.cpp.

Referenced by ScriptableMyth::SendMessage().

◆ SendNotification()

bool Myth::SendNotification ( bool  Error,
const QString &  Type,
const QString &  Message,
const QString &  Origin,
const QString &  Description,
const QString &  Image,
const QString &  Extra,
const QString &  ProgressText,
float  Progress,
int  Duration,
bool  Fullscreen,
uint  Visibility,
uint  Priority,
const QString &  Address,
int  udpPort 
)
overridevirtual

Implements MythServices.

Definition at line 823 of file myth.cpp.

◆ BackupDatabase()

bool Myth::BackupDatabase ( void  )
overridevirtual

Implements MythServices.

Definition at line 901 of file myth.cpp.

Referenced by ScriptableMyth::BackupDatabase().

◆ CheckDatabase()

bool Myth::CheckDatabase ( bool  Repair)
overridevirtual

Implements MythServices.

Definition at line 928 of file myth.cpp.

Referenced by ScriptableMyth::CheckDatabase().

◆ DelayShutdown()

bool Myth::DelayShutdown ( void  )
overridevirtual

Implements MythServices.

Definition at line 942 of file myth.cpp.

Referenced by ScriptableMyth::DelayShutdown().

◆ ProfileSubmit()

bool Myth::ProfileSubmit ( void  )
overridevirtual

Implements MythServices.

Definition at line 954 of file myth.cpp.

Referenced by ScriptableMyth::ProfileSubmit().

◆ ProfileDelete()

bool Myth::ProfileDelete ( void  )
overridevirtual

Implements MythServices.

Definition at line 970 of file myth.cpp.

Referenced by ScriptableMyth::ProfileDelete().

◆ ProfileURL()

QString Myth::ProfileURL ( void  )
overridevirtual

Implements MythServices.

Definition at line 986 of file myth.cpp.

Referenced by ScriptableMyth::ProfileURL().

◆ ProfileUpdated()

QString Myth::ProfileUpdated ( void  )
overridevirtual

Implements MythServices.

Definition at line 1002 of file myth.cpp.

Referenced by ScriptableMyth::ProfileUpdated().

◆ ProfileText()

QString Myth::ProfileText ( void  )
overridevirtual

Implements MythServices.

Definition at line 1020 of file myth.cpp.

Referenced by ScriptableMyth::ProfileText().

◆ GetBackendInfo()

DTC::BackendInfo * Myth::GetBackendInfo ( void  )
overridevirtual

Implements MythServices.

Definition at line 1034 of file myth.cpp.

Referenced by ScriptableMyth::GetBackendInfo().

◆ ManageDigestUser()

bool Myth::ManageDigestUser ( const QString &  Action,
const QString &  UserName,
const QString &  Password,
const QString &  NewPassword,
const QString &  AdminPassword 
)
overridevirtual

Implements MythServices.

Definition at line 1068 of file myth.cpp.

Referenced by ChangePassword(), and ScriptableMyth::ManageDigestUser().

◆ ManageUrlProtection()

bool Myth::ManageUrlProtection ( const QString &  Services,
const QString &  AdminPassword 
)
overridevirtual

Implements MythServices.

Definition at line 1100 of file myth.cpp.

Referenced by ScriptableMyth::ManageUrlProtection().


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