20 #ifndef _UPNPDIR_HXX_INCLUDED_
21 #define _UPNPDIR_HXX_INCLUDED_
25 #include <upnp/upnp.h>
51 std::string m_actionURL;
52 std::string m_serviceType;
53 std::string m_deviceId;
54 std::string m_friendlyName;
55 std::string m_manufacturer;
56 std::string m_modelName;
80 const char *objectId)
const;
83 const char *objectId,
unsigned offset,
85 unsigned &didread,
unsigned &total)
const;
98 const char *searchstring)
const;
105 const char *objectId)
const;
118 return "upnp://" + m_deviceId +
"/" + m_serviceType;
123 return m_friendlyName.c_str();
gcc_pure std::string GetURI() const
const char * getFriendlyName() const
Retrieve the "friendly name" for this server, useful for display.
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
~ContentDirectoryService()
UPnPDirContent getMetadata(UpnpClient_Handle handle, const char *objectId) const
Read metadata for a given node.
Data holder for a UPnP device, parsed from the XML description obtained during discovery.
std::list< std::string > getSearchCapabilities(UpnpClient_Handle handle) const
Retrieve search capabilities.
UPnPDirContent search(UpnpClient_Handle handle, const char *objectId, const char *searchstring) const
Search the content directory service.
ContentDirectoryService()=default
An empty one.
Content Directory Service class.
UPnPDirContent readDir(UpnpClient_Handle handle, const char *objectId) const
Read a container's children list into dirbuf.
Image of a MediaServer Directory Service container (directory), possibly containing items and subordi...
void readDirSlice(UpnpClient_Handle handle, const char *objectId, unsigned offset, unsigned count, UPnPDirContent &dirbuf, unsigned &didread, unsigned &total) const