Go to the documentation of this file.
16 #define MYTH_SERVICE QString("/Myth/")
17 #define MYTH_HANDLE QString("Myth")
22 Q_CLASSINFO(
"Version" ,
"5.2" )
23 Q_CLASSINFO(
"GetHostName",
"methods=GET;name=String" )
24 Q_CLASSINFO(
"GetHosts",
"methods=GET;name=StringList" )
25 Q_CLASSINFO(
"GetKeys",
"methods=GET;name=StringList" )
26 Q_CLASSINFO(
"AddStorageGroupDir",
"methods=POST" )
27 Q_CLASSINFO(
"RemoveStorageGroupDir",
"methods=POST" )
28 Q_CLASSINFO(
"GetFormatDate",
"methods=GET;name=String" )
29 Q_CLASSINFO(
"GetFormatDateTime",
"methods=GET;name=String" )
30 Q_CLASSINFO(
"GetFormatTime",
"methods=GET;name=String" )
31 Q_CLASSINFO(
"ParseISODateString",
"methods=GET" )
32 Q_CLASSINFO(
"GetSetting",
"methods=GET;name=String" )
33 Q_CLASSINFO(
"PutSetting",
"methods=POST" )
34 Q_CLASSINFO(
"DeleteSetting",
"methods=POST" )
35 Q_CLASSINFO(
"TestDBSettings",
"methods=POST" )
36 Q_CLASSINFO(
"SendMessage",
"methods=POST" )
37 Q_CLASSINFO(
"SendNotification",
"methods=POST" )
38 Q_CLASSINFO(
"BackupDatabase",
"methods=POST" )
39 Q_CLASSINFO(
"CheckDatabase",
"methods=POST" )
40 Q_CLASSINFO(
"DelayShutdown",
"methods=POST" )
41 Q_CLASSINFO(
"ProfileSubmit",
"methods=POST" )
42 Q_CLASSINFO(
"ProfileDelete",
"methods=POST" )
43 Q_CLASSINFO(
"ProfileURL",
"methods=GET" )
44 Q_CLASSINFO(
"ProfileUpdated",
"methods=GET" )
45 Q_CLASSINFO(
"ProfileText",
"methods=GET" )
46 Q_CLASSINFO(
"ManageDigestUser",
"methods=POST" )
47 Q_CLASSINFO(
"ManageUrlProtection",
"methods=POST" )
48 Q_CLASSINFO(
"SetConnectionInfo",
"methods=POST" )
49 Q_CLASSINFO(
"ManageScheduler",
"methods=POST")
50 Q_CLASSINFO(
"Shutdown",
"methods=POST")
51 Q_CLASSINFO(
"Proxy",
"methods=GET,POST")
63 const QString &UserName,
79 const QString &HostName );
82 const QString &DirName,
83 const QString &HostName );
86 const QString &DirName,
87 const QString &HostName );
102 const QString &Application,
105 const QString &Thread,
106 const QString &Filename,
108 const QString &Function,
109 const QDateTime &FromTime,
110 const QDateTime &ToTime,
111 const QString &Level,
112 const QString &MsgContains
117 static QString
GetSetting (
const QString &HostName,
119 const QString &Default );
122 static bool PutSetting (
const QString &HostName,
124 const QString &Value );
130 const QString &UserName,
132 const QString &DBName,
136 const QString &Address,
142 const QString &Message,
143 const QString &Origin,
144 const QString &Description,
145 const QString &
Image,
146 const QString &Extra,
147 const QString &ProgressText,
153 const QString &Address,
175 const QString &UserName,
177 const QString &NewPassword,
178 const QString &AdminPassword );
181 const QString &AdminPassword );
186 static bool Shutdown (
int Retcode,
bool Restart);
188 static QString
Proxy (
const QString &Url);
static StandardSetting * Password(bool enabled)
Setting for changing password.
static QString GetHostName()
static bool DeleteSetting(const QString &HostName, const QString &Key)
static QStringList GetDirListing(const QString &DirName, bool Files)
static QStringList GetKeys()
static QString ProfileUpdated(void)
static QString GetFormatDate(const QDateTime &Date, bool ShortDate)
static bool PutSetting(const QString &HostName, const QString &Key, const QString &Value)
static QString ProfileText(void)
static bool DelayShutdown(void)
An action (for this plugin) consists of a description, and a set of key sequences.
static bool ManageScheduler(bool Enable, bool Disable)
static bool SetConnectionInfo(const QString &Host, const QString &UserName, const QString &Password, const QString &Name, int Port, bool DoTest)
static V2LogMessageList * 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)
static bool ManageUrlProtection(const QString &Services, const QString &AdminPassword)
~V2Myth() override=default
static QString GetFormatTime(const QDateTime &Time)
static QString GetFormatDateTime(const QDateTime &DateTime, bool ShortDate)
Contains Packet Identifier numeric values.
static QString Proxy(const QString &Url)
static bool BackupDatabase(void)
static V2FrontendList * GetFrontends(bool OnLine)
static QString GetSetting(const QString &HostName, const QString &Key, const QString &Default)
static bool AddStorageGroupDir(const QString &GroupName, const QString &DirName, const QString &HostName)
static V2ConnectionInfo * GetConnectionInfo(const QString &Pin)
static QDateTime ParseISODateString(const QString &DateTime)
static V2StorageGroupDirList * GetStorageGroupDirs(const QString &GroupName, const QString &HostName)
static QStringList GetHosts()
static bool CheckDatabase(bool Repair)
static bool Shutdown(int Retcode, bool Restart)
static bool ProfileSubmit(void)
static V2BackendInfo * GetBackendInfo(void)
static bool TestDBSettings(const QString &HostName, const QString &UserName, const QString &Password, const QString &DBName, int dbPort)
static void RegisterCustomTypes()
static QString ProfileURL(void)
static bool ManageDigestUser(const QString &Action, const QString &UserName, const QString &Password, const QString &NewPassword, const QString &AdminPassword)
static bool SendMessage(const QString &Message, const QString &Address, int udpPort, int Timeout)
static 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 Timeout, bool Fullscreen, uint Visibility, uint Priority, const QString &Address, int udpPort)
static bool RemoveStorageGroupDir(const QString &GroupName, const QString &DirName, const QString &HostName)
static V2TimeZoneInfo * GetTimeZone()
static bool ProfileDelete(void)
static V2SettingList * GetSettingList(const QString &HostName)