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