Go to the documentation of this file.
25 const QString &sSharePath,
26 const QString &sSourceProtocols,
27 const QString &sSinkProtocols )
28 :
Eventing(
"UPnpCMGR",
"CMGR_Event", sSharePath)
35 SetValue< QString >(
"CurrentConnectionIDs",
"0" );
36 SetValue< QString >(
"SourceProtocolInfo" , sSourceProtocols );
37 SetValue< QString >(
"SinkProtocolInfo" , sSinkProtocols );
38 SetValue< QString >(
"FeatureList" ,
"" );
52 "urn:schemas-upnp-org:av:cm-featureList" ));
54 "http://www.w3.org/2001/XMLSchema-instance" ));
56 "urn:schemas-upnp-org:av:cm-featureList "
57 "http://www.upnp.org/schemas/av/cm-featureList.xsd" ));
66 auto sValue = GetValue< QString >(
"SourceProtocolInfo" );
68 if (sValue.length() > 0 )
73 SetValue< QString >(
"SourceProtocolInfo", sValue );
82 auto sValue = GetValue< QString >(
"SinkProtocolInfo" );
84 if (sValue.length() > 0 )
89 SetValue< QString >(
"SinkProtocolInfo", sValue );
131 LOG(VB_UPNP, LOG_DEBUG,
132 QString(
"UPnpCMGR::ProcessRequest - BaseUrl (%1) not ours...")
138 LOG(VB_UPNP, LOG_INFO,
139 QString(
"UPnpCMGR::ProcessRequest - Method (%1)")
178 NameValue(
"Source", GetValue<QString>(
"SourceProtocolInfo")));
180 NameValue(
"Sink", GetValue<QString>(
"SinkProtocolInfo")));
191 unsigned short nId = pRequest->
m_mapParams[
"ConnectionID" ].toUShort();
202 list.push_back(
NameValue(
"RcsID" ,
"-1" ,
true));
203 list.push_back(
NameValue(
"AVTransportID" ,
"-1" ,
true));
204 list.push_back(
NameValue(
"ProtocolInfo" ,
"http-get:*:*:*" ,
true));
205 list.push_back(
NameValue(
"PeerConnectionManager",
"/" ,
true));
206 list.push_back(
NameValue(
"PeerConnectionID" ,
"-1" ,
true));
207 list.push_back(
NameValue(
"Direction" ,
"Output" ,
true));
208 list.push_back(
NameValue(
"Status" ,
"Unknown" ,
true));
222 NameValue(
"ConnectionIDs", GetValue<QString>(
"CurrentConnectionIDs")));
233 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
@ CMGRM_GetCurrentConnectionInfo
void FormatFileResponse(const QString &sFileName)
QString m_sServiceDescFileName
static void HandleGetCurrentConnectionInfo(HTTPRequest *pRequest)
virtual int GetValue(const QString &sSetting, int Default)=0
void AddVariable(StateVariableBase *pBase)
static UPnpCMGRMethod GetMethod(const QString &sURI)
bool ProcessRequest(HTTPRequest *pRequest) override
void HandleGetProtocolInfo(HTTPRequest *pRequest)
QStringList GetBasePaths() override
static Configuration * GetConfiguration()