Go to the documentation of this file.
22 :
Eventing(
"UPnpMSRR",
"MSRR_Event", sSharePath)
34 SetValue<unsigned short>(
"AuthorizationGrantedUpdateID", 0);
35 SetValue<unsigned short>(
"AuthorizationDeniedUpdateID" , 0);
36 SetValue<unsigned short>(
"ValidationSucceededUpdateID" , 0);
37 SetValue<unsigned short>(
"ValidationRevokedUpdateID" , 0);
39 QString sUPnpDescPath =
55 if (sURI ==
"GetServDesc" )
57 if (sURI ==
"IsAuthorized" )
59 if (sURI ==
"RegisterDevice" )
61 if (sURI ==
"IsValidated" )
90 LOG(VB_UPNP, LOG_INFO,
91 QString(
"UPnpMSRR::ProcessRequest : %1 : %2 :")
124 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleIsAuthorized");
127 list.push_back(
NameValue(
"Result",
"1"));
129 list.back().AddAttribute(
"xmlns:dt",
"urn:schemas-microsoft-com:datatypes",
true);
130 list.back().AddAttribute(
"dt:dt",
"int",
true);
142 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleRegisterDevice");
145 list.push_back(
NameValue(
"Result",
"1"));
153 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleIsValidated");
156 list.push_back(
NameValue(
"Result",
"1"));
158 list.back().AddAttribute(
"xmlns:dt",
"urn:schemas-microsoft-com:datatypes",
true);
159 list.back().AddAttribute(
"dt:dt",
"int",
true);
QStringList GetBasePaths() override
static void HandleIsAuthorized(HTTPRequest *pRequest)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
bool ProcessRequest(HTTPRequest *pRequest) override
QStringList GetBasePaths() 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.
UPnpMSRR(UPnpDevice *pDevice, const QString &sSharePath)
static UPnpMSRRMethod GetMethod(const QString &sURI)
@ MSRR_GetServiceDescription
@ UPnPResult_InvalidAction
void FormatFileResponse(const QString &sFileName)
static void HandleIsValidated(HTTPRequest *pRequest)
virtual int GetValue(const QString &sSetting, int Default)=0
void AddVariable(StateVariableBase *pBase)
bool ProcessRequest(HTTPRequest *pRequest) override
QString m_sServiceDescFileName
static void HandleRegisterDevice(HTTPRequest *pRequest)
static Configuration * GetConfiguration()