18 #ifndef _DEVICE_H_X_INCLUDED_ 19 #define _DEVICE_H_X_INCLUDED_ 27 #include "libupnpp/device/service.hxx" 28 #include "libupnpp/soaphelp.hxx" 29 #include "libupnpp/upnperrcodes.hxx" 30 #include "libupnpp/upnppexports.hxx" 36 typedef std::function<int (const UPnPP::SoapIncoming&, UPnPP::SoapOutgoing&)>
81 void setProductVersion(
const char *product,
const char *version);
84 static bool ipv4(std::string *host,
unsigned short *port);
108 virtual bool readLibFile(
const std::string& name, std::string& contents) = 0;
123 bool addVFile(
const std::string& name,
const std::string& contents,
124 const std::string& mime, std::string& path);
132 const std::string& actName, soapfun);
135 const std::string& getDeviceId()
const;
206 const std::vector<std::string>& names,
207 const std::vector<std::string>& values);
225 void forgetService(
const std::string& serviceId);
228 class UPNPP_LOCAL Internal;
Definition: device.cxx:116
Base Device class.
Definition: device.hxx:54
Upnp service base class.
Definition: service.hxx:36
Virtual directory handler to satisfy libupnp miniserver GETs.
Definition: device.cxx:49