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

#include <myth.h>

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

Public Slots

QObject * GetConnectionInfo (const QString &Pin)
 
QString GetHostName ()
 
QStringList GetHosts ()
 
QStringList GetKeys ()
 
QObject * GetStorageGroupDirs (const QString &GroupName, const QString &HostName)
 
bool AddStorageGroupDir (const QString &GroupName, const QString &DirName, const QString &HostName)
 
bool RemoveStorageGroupDir (const QString &GroupName, const QString &DirName, const QString &HostName)
 
QObject * GetTimeZone ()
 
QString GetFormatDate (const QDateTime &Date, bool ShortDate=false)
 
QString GetFormatDateTime (const QDateTime &DateTime, bool ShortDate=false)
 
QString GetFormatTime (const QDateTime &Time)
 
QDateTime ParseISODateString (const QString &DateTime)
 
QObject * 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)
 
QObject * GetFrontends (bool OnLine)
 
QString GetSetting (const QString &HostName, const QString &Key, const QString &Default)
 
QObject * GetSettingList (const QString &HostName)
 
bool PutSetting (const QString &HostName, const QString &Key, const QString &Value)
 
bool TestDBSettings (const QString &HostName, const QString &UserName, const QString &Password, const QString &DBName, int dbPort)
 
bool SendMessage (const QString &Message, const QString &Address, int udpPort, int Timeout)
 
bool BackupDatabase (void)
 
bool CheckDatabase (bool Repair)
 
bool DelayShutdown (void)
 
bool ProfileSubmit (void)
 
bool ProfileDelete (void)
 
QString ProfileURL (void)
 
QString ProfileUpdated (void)
 
QString ProfileText (void)
 
QObject * GetBackendInfo (void)
 
bool ManageDigestUser (const QString &Action, const QString &UserName, const QString &Password, const QString &NewPassword, const QString &AdminPassword)
 
bool ManageUrlProtection (const QString &Services, const QString &AdminPassword)
 

Public Member Functions

Q_INVOKABLE ScriptableMyth (QScriptEngine *pEngine, QObject *parent=nullptr)
 

Private Attributes

Myth m_obj
 
QScriptEngine * m_pEngine
 

Detailed Description

Definition at line 171 of file myth.h.

Constructor & Destructor Documentation

◆ ScriptableMyth()

Q_INVOKABLE ScriptableMyth::ScriptableMyth ( QScriptEngine *  pEngine,
QObject *  parent = nullptr 
)
inline

Definition at line 182 of file myth.h.

Member Function Documentation

◆ GetConnectionInfo

QObject* ScriptableMyth::GetConnectionInfo ( const QString &  Pin)
inlineslot

Definition at line 189 of file myth.h.

◆ GetHostName

QString ScriptableMyth::GetHostName ( void  )
inlineslot

Definition at line 196 of file myth.h.

◆ GetHosts

QStringList ScriptableMyth::GetHosts ( )
inlineslot

Definition at line 203 of file myth.h.

◆ GetKeys

QStringList ScriptableMyth::GetKeys ( )
inlineslot

Definition at line 210 of file myth.h.

◆ GetStorageGroupDirs

QObject* ScriptableMyth::GetStorageGroupDirs ( const QString &  GroupName,
const QString &  HostName 
)
inlineslot

Definition at line 217 of file myth.h.

◆ AddStorageGroupDir

bool ScriptableMyth::AddStorageGroupDir ( const QString &  GroupName,
const QString &  DirName,
const QString &  HostName 
)
inlineslot

Definition at line 225 of file myth.h.

◆ RemoveStorageGroupDir

bool ScriptableMyth::RemoveStorageGroupDir ( const QString &  GroupName,
const QString &  DirName,
const QString &  HostName 
)
inlineslot

Definition at line 234 of file myth.h.

◆ GetTimeZone

QObject* ScriptableMyth::GetTimeZone ( )
inlineslot

Definition at line 243 of file myth.h.

◆ GetFormatDate

QString ScriptableMyth::GetFormatDate ( const QDateTime &  Date,
bool  ShortDate = false 
)
inlineslot

Definition at line 250 of file myth.h.

◆ GetFormatDateTime

QString ScriptableMyth::GetFormatDateTime ( const QDateTime &  DateTime,
bool  ShortDate = false 
)
inlineslot

Definition at line 258 of file myth.h.

◆ GetFormatTime

QString ScriptableMyth::GetFormatTime ( const QDateTime &  Time)
inlineslot

Definition at line 266 of file myth.h.

◆ ParseISODateString

QDateTime ScriptableMyth::ParseISODateString ( const QString &  DateTime)
inlineslot

Definition at line 273 of file myth.h.

◆ GetLogs

QObject* ScriptableMyth::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 
)
inlineslot

Definition at line 280 of file myth.h.

◆ GetFrontends

QObject* ScriptableMyth::GetFrontends ( bool  OnLine)
inlineslot

Definition at line 300 of file myth.h.

◆ GetSetting

QString ScriptableMyth::GetSetting ( const QString &  HostName,
const QString &  Key,
const QString &  Default 
)
inlineslot

Definition at line 307 of file myth.h.

◆ GetSettingList

QObject* ScriptableMyth::GetSettingList ( const QString &  HostName)
inlineslot

Definition at line 316 of file myth.h.

◆ PutSetting

bool ScriptableMyth::PutSetting ( const QString &  HostName,
const QString &  Key,
const QString &  Value 
)
inlineslot

Definition at line 323 of file myth.h.

◆ TestDBSettings

bool ScriptableMyth::TestDBSettings ( const QString &  HostName,
const QString &  UserName,
const QString &  Password,
const QString &  DBName,
int  dbPort 
)
inlineslot

Definition at line 332 of file myth.h.

◆ SendMessage

bool ScriptableMyth::SendMessage ( const QString &  Message,
const QString &  Address,
int  udpPort,
int  Timeout 
)
inlineslot

Definition at line 344 of file myth.h.

◆ BackupDatabase

bool ScriptableMyth::BackupDatabase ( void  )
inlineslot

Definition at line 354 of file myth.h.

◆ CheckDatabase

bool ScriptableMyth::CheckDatabase ( bool  Repair)
inlineslot

Definition at line 361 of file myth.h.

◆ DelayShutdown

bool ScriptableMyth::DelayShutdown ( void  )
inlineslot

Definition at line 368 of file myth.h.

◆ ProfileSubmit

bool ScriptableMyth::ProfileSubmit ( void  )
inlineslot

Definition at line 375 of file myth.h.

◆ ProfileDelete

bool ScriptableMyth::ProfileDelete ( void  )
inlineslot

Definition at line 382 of file myth.h.

◆ ProfileURL

QString ScriptableMyth::ProfileURL ( void  )
inlineslot

Definition at line 389 of file myth.h.

◆ ProfileUpdated

QString ScriptableMyth::ProfileUpdated ( void  )
inlineslot

Definition at line 396 of file myth.h.

◆ ProfileText

QString ScriptableMyth::ProfileText ( void  )
inlineslot

Definition at line 403 of file myth.h.

◆ GetBackendInfo

QObject* ScriptableMyth::GetBackendInfo ( void  )
inlineslot

Definition at line 410 of file myth.h.

◆ ManageDigestUser

bool ScriptableMyth::ManageDigestUser ( const QString &  Action,
const QString &  UserName,
const QString &  Password,
const QString &  NewPassword,
const QString &  AdminPassword 
)
inlineslot

Definition at line 416 of file myth.h.

◆ ManageUrlProtection

bool ScriptableMyth::ManageUrlProtection ( const QString &  Services,
const QString &  AdminPassword 
)
inlineslot

Definition at line 430 of file myth.h.

Member Data Documentation

◆ m_obj

Myth ScriptableMyth::m_obj
private

◆ m_pEngine

QScriptEngine* ScriptableMyth::m_pEngine
private

Definition at line 178 of file myth.h.

Referenced by ScriptableMyth().


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