Go to the documentation of this file.
24 const QString &sSharePath,
25 const QString &sSourceProtocols,
26 const QString &sSinkProtocols )
27 :
Eventing(
"UPnpCMGR",
"CMGR_Event", sSharePath)
34 SetValue< QString >(
"CurrentConnectionIDs",
"0" );
35 SetValue< QString >(
"SourceProtocolInfo" , sSourceProtocols );
36 SetValue< QString >(
"SinkProtocolInfo" , sSinkProtocols );
37 SetValue< QString >(
"FeatureList" ,
"" );
50 "urn:schemas-upnp-org:av:cm-featureList" ));
52 "http://www.w3.org/2001/XMLSchema-instance" ));
54 "urn:schemas-upnp-org:av:cm-featureList "
55 "http://www.upnp.org/schemas/av/cm-featureList.xsd" ));
64 auto sValue = GetValue< QString >(
"SourceProtocolInfo" );
66 if (sValue.length() > 0 )
71 SetValue< QString >(
"SourceProtocolInfo", sValue );
80 auto sValue = GetValue< QString >(
"SinkProtocolInfo" );
82 if (sValue.length() > 0 )
87 SetValue< QString >(
"SinkProtocolInfo", sValue );
129 LOG(VB_UPNP, LOG_DEBUG,
130 QString(
"UPnpCMGR::ProcessRequest - BaseUrl (%1) not ours...")
136 LOG(VB_UPNP, LOG_INFO,
137 QString(
"UPnpCMGR::ProcessRequest - Method (%1)")
176 NameValue(
"Source", GetValue<QString>(
"SourceProtocolInfo")));
178 NameValue(
"Sink", GetValue<QString>(
"SinkProtocolInfo")));
189 unsigned short nId = pRequest->
m_mapParams[
"ConnectionID" ].toUShort();
200 list.push_back(
NameValue(
"RcsID" ,
"-1" ,
true));
201 list.push_back(
NameValue(
"AVTransportID" ,
"-1" ,
true));
202 list.push_back(
NameValue(
"ProtocolInfo" ,
"http-get:*:*:*" ,
true));
203 list.push_back(
NameValue(
"PeerConnectionManager",
"/" ,
true));
204 list.push_back(
NameValue(
"PeerConnectionID" ,
"-1" ,
true));
205 list.push_back(
NameValue(
"Direction" ,
"Output" ,
true));
206 list.push_back(
NameValue(
"Status" ,
"Unknown" ,
true));
220 NameValue(
"ConnectionIDs", GetValue<QString>(
"CurrentConnectionIDs")));
231 list.push_back(
NameValue(
"FeatureList", sResults));
@ CMGRM_GetServiceDescription
QStringList GetBasePaths() override
UPnpCMGR(UPnpDevice *pDevice, const QString &sSharePath, const QString &sSourceProtocols="", const QString &sSinkProtocols="")
void HandleGetCurrentConnectionIDs(HTTPRequest *pRequest)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
bool ProcessRequest(HTTPRequest *pRequest) override
static void FormatErrorResponse(HTTPRequest *pRequest, UPnPResultCode eCode, const QString &sMsg="")
void FormatActionResponse(Serializer *ser)
void RegisterService(UPnpDevice *device)
Creates a UPnpService and adds it to the UPnpDevice's list of services.
void HandleGetFeatureList(HTTPRequest *pRequest)
void AddSourceProtocol(const QString &sProtocol)
void AddSinkProtocol(const QString &sProtocol)
void AddAttribute(const NameValue &attribute)
UPnPFeatureList m_features
@ CMGRM_GetCurrentConnectionIDs
@ UPnPResult_CMGR_InvalidConnectionRef
@ UPnPResult_InvalidAction
QString GetValue(const QString &setting)
@ CMGRM_GetCurrentConnectionInfo
void FormatFileResponse(const QString &sFileName)
QString m_sServiceDescFileName
static void HandleGetCurrentConnectionInfo(HTTPRequest *pRequest)
void AddVariable(StateVariableBase *pBase)
static UPnpCMGRMethod GetMethod(const QString &sURI)
bool ProcessRequest(HTTPRequest *pRequest) override
void HandleGetProtocolInfo(HTTPRequest *pRequest)
QStringList GetBasePaths() override