18 #ifndef _UPNPDIR_HXX_INCLUDED_ 19 #define _UPNPDIR_HXX_INCLUDED_ 21 #include <unordered_map> 26 #include "libupnpp/control/service.hxx" 30 class ContentDirectory;
33 class UPnPServiceDesc;
35 typedef std::shared_ptr<ContentDirectory> CDSH;
63 enum ServiceKind {CDSKIND_UNKNOWN, CDSKIND_BUBBLE, CDSKIND_MEDIATOMB,
64 CDSKIND_MINIDLNA, CDSKIND_MINIM, CDSKIND_TWONKY
67 ServiceKind getKind() {
72 static bool isCDService(
const std::string& st);
73 virtual bool serviceTypeMatch(
const std::string& tp);
76 static bool getServices(std::vector<CDSH>&);
79 static bool getServerByName(
const std::string& friendlyName,
103 int readDirSlice(
const std::string& objectId,
int offset,
105 int *didread,
int *total);
123 int search(
const std::string& objectId,
const std::string& searchstring,
126 int searchSlice(
const std::string& objectId,
127 const std::string& searchstring,
129 int *didread,
int *total);
138 int getMetadata(
const std::string& objectId,
UPnPDirContent& dirbuf);
146 int getSearchCapabilities(std::set<std::string>& result);
152 static const std::string SType;
156 ServiceKind m_serviceKind{CDSKIND_UNKNOWN};
159 evtCallback(
const std::unordered_map<std::string, std::string>&);
160 void UPNPP_LOCAL registerCallback();
Definition: service.hxx:82
ContentDirectory()
An empty one.
Definition: cdirectory.hxx:61
Image of a MediaServer Directory Service container (directory), possibly containing items and subordi...
Definition: cdircontent.hxx:286
Content Directory Service client class.
Definition: cdirectory.hxx:53
Data holder for a UPnP service, parsed from the device XML description.
Definition: description.hxx:46
Data holder for a UPnP device, parsed from the XML description obtained during discovery.
Definition: description.hxx:142
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition: avlastchg.cxx:27