Go to the documentation of this file.
21 :
Eventing(
"UPnpMSRR",
"MSRR_Event", sSharePath)
33 SetValue<unsigned short>(
"AuthorizationGrantedUpdateID", 0);
34 SetValue<unsigned short>(
"AuthorizationDeniedUpdateID" , 0);
35 SetValue<unsigned short>(
"ValidationSucceededUpdateID" , 0);
36 SetValue<unsigned short>(
"ValidationRevokedUpdateID" , 0);
53 if (sURI ==
"GetServDesc" )
55 if (sURI ==
"IsAuthorized" )
57 if (sURI ==
"RegisterDevice" )
59 if (sURI ==
"IsValidated" )
88 LOG(VB_UPNP, LOG_INFO,
89 QString(
"UPnpMSRR::ProcessRequest : %1 : %2 :")
122 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleIsAuthorized");
125 list.push_back(
NameValue(
"Result",
"1"));
127 list.back().AddAttribute(
"xmlns:dt",
"urn:schemas-microsoft-com:datatypes",
true);
128 list.back().AddAttribute(
"dt:dt",
"int",
true);
140 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleRegisterDevice");
143 list.push_back(
NameValue(
"Result",
"1"));
151 LOG(VB_UPNP, LOG_DEBUG,
"UPnpMSRR::HandleIsValidated");
154 list.push_back(
NameValue(
"Result",
"1"));
156 list.back().AddAttribute(
"xmlns:dt",
"urn:schemas-microsoft-com:datatypes",
true);
157 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
QString GetValue(const QString &setting)
void FormatFileResponse(const QString &sFileName)
static void HandleIsValidated(HTTPRequest *pRequest)
void AddVariable(StateVariableBase *pBase)
bool ProcessRequest(HTTPRequest *pRequest) override
QString m_sServiceDescFileName
static void HandleRegisterDevice(HTTPRequest *pRequest)