21 :
Eventing(
"UPnpMSRR",
"MSRR_Event", sSharePath),
22 m_sControlUrl(
"/MSRR_Control")
34 SetValue<unsigned short>(
"AuthorizationGrantedUpdateID", 0);
35 SetValue<unsigned short>(
"AuthorizationDeniedUpdateID" , 0);
36 SetValue<unsigned short>(
"ValidationSucceededUpdateID" , 0);
37 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);
bool ProcessRequest(HTTPRequest *pRequest) override
QStringList GetBasePaths() override
void FormatErrorResponse(bool bServerError, const QString &sFaultString, const QString &sDetails)
void FormatFileResponse(const QString &sFileName)
void FormatActionResponse(Serializer *ser)
void AddVariable(StateVariableBase *pBase)
static void HandleIsAuthorized(HTTPRequest *pRequest)
UPnpMSRR(UPnpDevice *pDevice, const QString &sSharePath)
static void HandleIsValidated(HTTPRequest *pRequest)
QString m_sServiceDescFileName
bool ProcessRequest(HTTPRequest *pRequest) override
static UPnpMSRRMethod GetMethod(const QString &sURI)
static void HandleRegisterDevice(HTTPRequest *pRequest)
QStringList GetBasePaths() override
void RegisterService(UPnpDevice *device)
Creates a UPnpService and adds it to the UPnpDevice's list of services.
QString GetValue(const QString &setting)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
@ MSRR_GetServiceDescription
@ UPnPResult_InvalidAction