MythTV
master
mythtv
libs
libmythbase
http
mythhttpservices.cpp
Go to the documentation of this file.
1
// MythTV
2
#include "
http/mythhttpservices.h
"
3
#include "
http/mythhttpmetaservice.h
"
4
5
// This will be initialised in a thread safe manner on first use
6
Q_GLOBAL_STATIC_WITH_ARGS
(
MythHTTPMetaService
, s_service, (
HTTP_SERVICES_DIR
, MythHTTPServices::staticMetaObject))
7
8
MythHTTPServices
::
MythHTTPServices
()
9
:
MythHTTPService
(s_service)
10
{
11
}
12
13
void
MythHTTPServices::UpdateServices
(
const
HTTPServices
& Services)
14
{
15
m_serviceList
.clear();
16
for
(
const
auto
& service : Services)
17
m_serviceList
.append(service.first);
18
emit
ServiceListChanged
(
m_serviceList
);
19
}
20
21
QStringList
MythHTTPServices::GetServiceList
()
22
{
23
return
m_serviceList
;
24
}
MythHTTPServices::m_serviceList
QStringList m_serviceList
Definition:
mythhttpservices.h:29
mythhttpmetaservice.h
MythHTTPServices::GetServiceList
QStringList GetServiceList()
Definition:
mythhttpservices.cpp:21
MythHTTPServices
Definition:
mythhttpservices.h:7
MythHTTPService
Definition:
mythhttpservice.h:19
MythHTTPServices::UpdateServices
void UpdateServices(const HTTPServices &Services)
Definition:
mythhttpservices.cpp:13
MythHTTPServices::ServiceListChanged
void ServiceListChanged(const QStringList &ServiceList)
Q_GLOBAL_STATIC_WITH_ARGS
Q_GLOBAL_STATIC_WITH_ARGS(MythHTTPMetaService, s_service,(CAPTURE_HANDLE, V2Capture::staticMetaObject, &V2Capture::RegisterCustomTypes)) void V2Capture
Definition:
v2capture.cpp:48
HTTP_SERVICES_DIR
#define HTTP_SERVICES_DIR
Definition:
mythhttptypes.h:26
mythhttpservices.h
HTTPServices
std::vector< HTTPService > HTTPServices
Definition:
mythhttptypes.h:55
MythHTTPMetaService
Definition:
mythhttpmetaservice.h:10
Generated on Wed Feb 26 2025 03:17:53 for MythTV by
1.8.17