MythTV
master
programs
mythbackend
servicesv2
v2config.h
Go to the documentation of this file.
1
#ifndef V2CONFIG_H
2
#define V2CONFIG_H
3
4
#include "
libmythbase/http/mythhttpservice.h
"
5
#include "
v2connectionInfo.h
"
6
#include "
v2databaseStatus.h
"
7
#include "
v2languageList.h
"
8
#include "
v2countryList.h
"
9
#include "
v2systemEventList.h
"
10
11
#define CONFIG_SERVICE QString("/Config/")
12
#define CONFIG_HANDLE QString("Config")
13
14
class
V2Config
:
public
MythHTTPService
15
{
16
Q_OBJECT
17
Q_CLASSINFO(
"Version"
,
"0.1"
)
18
Q_CLASSINFO(
"SetDatabaseCredentials"
,
"methods=POST"
)
19
20
21
public
:
22
V2Config
();
23
~V2Config
()
override
=
default
;
24
static
void
RegisterCustomTypes
();
25
26
public
slots:
27
28
static
bool
SetDatabaseCredentials
(
const
QString &Host,
29
const
QString &UserName,
30
const
QString &
Password
,
31
const
QString &
Name
,
32
int
Port,
33
bool
DoTest );
34
35
static
V2DatabaseStatus
*
GetDatabaseStatus
(
void
);
36
37
static
V2CountryList
*
GetCountries
(
void
);
38
static
V2LanguageList
*
GetLanguages
(
void
);
39
static
V2SystemEventList
*
GetSystemEvents
(
const
QString &Host );
40
41
static
QStringList
GetIPAddresses
(
const
QString &Protocol );
42
43
44
45
private
:
46
Q_DISABLE_COPY(
V2Config
)
47
48
};
49
50
#endif // V2CONFIG_H
Password
static StandardSetting * Password(bool enabled)
Setting for changing password.
Definition:
galleryconfig.cpp:245
V2Config::RegisterCustomTypes
static void RegisterCustomTypes()
V2Config::SetDatabaseCredentials
static bool SetDatabaseCredentials(const QString &Host, const QString &UserName, const QString &Password, const QString &Name, int Port, bool DoTest)
Definition:
v2config.cpp:49
V2Config::GetDatabaseStatus
static V2DatabaseStatus * GetDatabaseStatus(void)
Definition:
v2config.cpp:86
V2CountryList
Definition:
v2countryList.h:9
V2Config::GetCountries
static V2CountryList * GetCountries(void)
Definition:
v2config.cpp:132
v2languageList.h
V2Config::GetLanguages
static V2LanguageList * GetLanguages(void)
Definition:
v2config.cpp:159
V2LanguageList
Definition:
v2languageList.h:9
V2Config::V2Config
V2Config()
Definition:
v2config.cpp:41
MythHTTPService
Definition:
mythhttpservice.h:19
v2systemEventList.h
mythhttpservice.h
V2Config::GetSystemEvents
static V2SystemEventList * GetSystemEvents(const QString &Host)
Definition:
v2config.cpp:211
v2databaseStatus.h
Name
Definition:
channelsettings.cpp:47
V2SystemEventList
Definition:
v2systemEventList.h:30
v2connectionInfo.h
V2DatabaseStatus
Definition:
v2databaseStatus.h:7
V2Config
Definition:
v2config.h:14
v2countryList.h
V2Config::GetIPAddresses
static QStringList GetIPAddresses(const QString &Protocol)
Definition:
v2config.cpp:186
V2Config::~V2Config
~V2Config() override=default
Generated on Fri Mar 31 2023 03:24:43 for MythTV by
1.8.17