|
libupnpp 0.16.0
A C++ wrapper for the Portable UPnP reference library
|
Deal with data for the SOAP action protocol. More...
Classes | |
| class | LibUPnP |
| Our link to libupnp. More... | |
| struct | ProtocolinfoEntry |
| Decoded protocolinfo entry data. More... | |
| class | SoapIncoming |
| Store incoming Soap data: device action input parameters, or response to CP. More... | |
| class | SoapOutgoing |
| Store the values to be encoded in outgoing SOAP data: device response or CP args. More... | |
| struct | UPnPOptions |
Functions | |
| bool | base64_decode (const string &in, string &out) |
| void | base64_encode (const string &in, string &out) |
| void UPNPP_API | base64_encode (const std::string &in, std::string &out) |
| bool UPNPP_API | base64_decode (const std::string &in, std::string &out) |
| std::string | base64_encode (const std::string &in) |
| std::string | base64_decode (const std::string &in) |
| string | upnpduration (int ms) |
| Format milliseconds into H+:MM:SS. | |
| int | upnpdurationtos (const string &dur) |
| bool | ohplIdArrayToVec (const string &_data, vector< int > *ids) |
| bool | parseProtoInfEntry (const string &protoinfo, ProtocolinfoEntry &e) |
| bool | parseProtocolInfo (const std::string &pinfo, std::vector< ProtocolinfoEntry > &entries) |
| Decode comma-separated bunch of procolinfo entries. | |
| int UPNPP_API | upnpdurationtos (const std::string &dur) |
| H+:MM:SS to seconds. | |
| bool UPNPP_API | ohplIdArrayToVec (const std::string &data, std::vector< int > *ids) |
| Decode OH playlist id array. | |
| bool UPNPP_API | parseProtoInfEntry (const std::string &protoinfo, ProtocolinfoEntry &e) |
| Decode one protocolinfo entry. | |
| std::string | caturl (const std::string &s1, const std::string &s2) |
| std::string | baseurl (const std::string &url) |
| std::string | path_getfather (const std::string &s) |
| std::string | path_getsimple (const std::string &s) |
| template<class T > | |
| bool | csvToStrings (const std::string &s, T &tokens) |
| bool | stringToBool (const std::string &s, bool *v) |
| std::string | reSanitizeURL (const std::string &in) |
| Sanitize URL which is supposedly already encoded but maybe not fully. | |
| std::string | evTypeAsString (Upnp_EventType) |
| Translate libupnp event type to string. | |
| string | caturl (const string &base, const string &rel) |
| string | baseurl (const string &url) |
| string | path_getfather (const string &s) |
| string | path_getsimple (const string &s) |
| template<class T > | |
| bool | csvToStrings (const string &s, T &tokens) |
| template bool | csvToStrings< vector< string > > (const string &, vector< string > &) |
| template bool | csvToStrings< set< string > > (const string &, set< string > &) |
| bool | stringToBool (const string &s, bool *value) |
| bool | getAdapterNames (vector< string > &names) |
| void UPNPP_API | timespec_addnanos (struct timespec *ts, long long nanos) |
| bool UPNPP_API | getAdapterNames (std::vector< std::string > &names) |
Deal with data for the SOAP action protocol.
This module used to decode/encode XML DOM trees from/to the libupnp interface. The npupnp interface uses C++ objects instead, so there is not much left in here, but it has successfully isolated the client code from the change.