Go to the documentation of this file.
97 double m_nClientVersion {0.0};
122 while (!m_List.isEmpty())
124 m_List.takeLast()->DecrRef();
130 QString GetResultXML(
FilterMap &filter,
bool ignoreChildren =
false);
188 bool AddShortCut(ShortCutType
type,
const QString &objectID);
192 static QString TypeToName(ShortCutType
type);
215 static QString RemoveToken (
const QString &sToken,
const QString &sStr,
int num );
226 {
return m_pRoot->GetChildContainerCount(); }
228 virtual void CreateRoot ( );
233 const QString& currentToken );
237 const QString& currentToken );
239 static IDTokenMap TokenizeIDString (
const QString &Id ) ;
240 static IDToken GetCurrentToken (
const QString &Id ) ;
242 static QString CreateIDString (
const QString &RequestId,
245 static QString CreateIDString (
const QString &RequestId,
247 const QString &Value );
254 QString sExtensionId,
256 m_sExtensionId(std::move(sExtensionId)),
257 m_sName(std::move(sName)),
258 m_sClass(std::move(sClass)) {}
302 static void HandleGetSearchCapabilities(
HTTPRequest *pRequest );
303 static void HandleGetSortCapabilities (
HTTPRequest *pRequest );
304 void HandleGetSystemUpdateID (
HTTPRequest *pRequest );
305 void HandleGetFeatureList (
HTTPRequest *pRequest );
306 void HandleGetServiceResetToken (
HTTPRequest *pRequest );
314 {
return "urn:schemas-upnp-org:service:ContentDirectory:4"; }
316 {
return "urn:upnp-org:serviceId:ContentDirectory"; }
318 {
return m_sControlUrl.mid( 1 ); }
320 {
return m_sControlUrl.mid( 1 ) +
"/GetServDesc"; }
324 const QString &sSharePath );
332 const QString &objectID );
QList< UPnpCDSExtension * > UPnpCDSExtensionList
QString GetServiceControlURL() override
Provices the base URL for control commands.
~UPnpCDSExtensionResults()
@ IMAGES_FOLDER_STRUCTURE
@ CDSM_GetServiceResetToken
UPnPFeatureList m_features
QMap< UPnPShortcutFeature::ShortCutType, QString > CDSShortCutList
QStringList GetBasePaths() override
@ CDSM_GetServiceDescription
Standard UPnP Shortcut feature.
@ CDSM_GetSearchCapabilities
@ VIDEOS_FOLDER_STRUCTURE
QString GetServiceId() override
Provides the device specific urn.
UPnpCDSExtensionList m_extensions
bool ProcessRequest(HTTPRequest *pRequest) override
virtual QString GetSearchCapabilities()
QString GetServiceType() override
Provices the schema urn.
CDSShortCutList m_shortcuts
QMap< uint, int > FilterMap
QString m_sSearchCriteria
static const std::array< featureStruct, 7 > feature
QString m_sServiceDescFileName
QMap< ShortCutType, QString > m_shortcuts
QList< CDSObject * > CDSObjects
UPnpCDSExtension(QString sName, QString sExtensionId, QString sClass)
QStringList m_sSearchList
@ CDSM_GetSortCapabilities
QString GetServiceDescURL() override
Provices the URL of the service description XML.
UPnpCDSClient nClientType
@ CDS_BrowseDirectChildren
QMap< QString, QString > IDTokenMap
virtual QString GetSortCapabilities()
virtual int GetRootCount()
QPair< QString, QString > IDToken
ShortCutType
Allowed values for the Container Shortcut feature.
virtual int GetRootContainerCount()
virtual CDSShortCutList GetShortCuts()
virtual QString CreateXML()=0