13 #ifndef MYTHSERVICES_H_
14 #define MYTHSERVICES_H_
48 Q_CLASSINFO(
"version" ,
"5.2" );
49 Q_CLASSINFO(
"AddStorageGroupDir_Method",
"POST" )
50 Q_CLASSINFO(
"RemoveStorageGroupDir_Method",
"POST" )
51 Q_CLASSINFO(
"PutSetting_Method",
"POST" )
52 Q_CLASSINFO(
"ChangePassword_Method",
"POST" )
53 Q_CLASSINFO(
"TestDBSettings_Method",
"POST" )
54 Q_CLASSINFO(
"SendMessage_Method",
"POST" )
55 Q_CLASSINFO(
"SendNotification_Method",
"POST" )
56 Q_CLASSINFO(
"BackupDatabase_Method",
"POST" )
57 Q_CLASSINFO(
"CheckDatabase_Method",
"POST" )
58 Q_CLASSINFO(
"DelayShutdown_Method",
"POST" )
59 Q_CLASSINFO(
"ProfileSubmit_Method",
"POST" )
60 Q_CLASSINFO(
"ProfileDelete_Method",
"POST" )
61 Q_CLASSINFO(
"ManageDigestUser_Method",
"POST" )
62 Q_CLASSINFO(
"ManageUrlProtection_Method",
"POST" )
85 virtual QString GetHostName ( ) = 0;
86 virtual QStringList GetHosts ( ) = 0;
87 virtual QStringList GetKeys ( ) = 0;
90 const QString &HostName ) = 0;
92 virtual bool AddStorageGroupDir (
const QString &GroupName,
93 const QString &DirName,
94 const QString &HostName ) = 0;
96 virtual bool RemoveStorageGroupDir(
const QString &GroupName,
97 const QString &DirName,
98 const QString &HostName ) = 0;
102 virtual QString GetFormatDate (
const QDateTime& Date,
103 bool ShortDate ) = 0;
104 virtual QString GetFormatDateTime (
const QDateTime& DateTime,
105 bool ShortDate ) = 0;
106 virtual QString GetFormatTime (
const QDateTime& Time ) = 0;
107 virtual QDateTime ParseISODateString (
const QString &DateTime ) = 0;
110 const QString &Application,
113 const QString &Thread,
114 const QString &Filename,
116 const QString &Function,
117 const QDateTime &FromTime,
118 const QDateTime &ToTime,
119 const QString &Level,
120 const QString &MsgContains ) = 0;
124 virtual QString GetSetting (
const QString &HostName,
126 const QString &Default ) = 0;
130 virtual bool PutSetting (
const QString &HostName,
132 const QString &Value ) = 0;
134 virtual bool ChangePassword (
const QString &UserName,
135 const QString &OldPassword,
136 const QString &NewPassword ) = 0;
138 virtual bool TestDBSettings (
const QString &HostName,
139 const QString &UserName,
141 const QString &DBName,
145 const QString &Address,
149 virtual bool SendNotification (
bool Error,
151 const QString &Message,
152 const QString &Origin,
153 const QString &Description,
154 const QString &
Image,
155 const QString &Extra,
156 const QString &ProgressText,
162 const QString &Address,
165 virtual bool BackupDatabase (
void ) = 0;
167 virtual bool CheckDatabase (
bool Repair ) = 0;
169 virtual bool DelayShutdown (
void ) = 0;
171 virtual bool ProfileSubmit (
void ) = 0;
173 virtual bool ProfileDelete (
void ) = 0;
175 virtual QString ProfileURL (
void ) = 0;
177 virtual QString ProfileUpdated (
void ) = 0;
179 virtual QString ProfileText (
void ) = 0;
183 virtual bool ManageDigestUser (
const QString &
Action,
184 const QString &UserName,
186 const QString &NewPassword,
187 const QString &AdminPassword ) = 0;
189 virtual bool ManageUrlProtection (
const QString &Services,
190 const QString &AdminPassword) = 0;