X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..919f87eea9070dd03ce260516bcf80381866d956:/lib/network/xmlrpc.h diff --git a/lib/network/xmlrpc.h b/lib/network/xmlrpc.h index 727e1e0e..b43e8e3d 100644 --- a/lib/network/xmlrpc.h +++ b/lib/network/xmlrpc.h @@ -8,51 +8,51 @@ #include #include -#include +#include #include #include -#define INSERT(KEY,VALUE) insert(std::pair(KEY,VALUE)) +#define INSERT(KEY,VALUE) insert(std::pair(KEY,VALUE)) class eXMLRPCVariant { - std::map *_struct; + std::map *_struct; std::vector *_array; __s32 *_i4; bool *_boolean; - eString *_string; + std::string *_string; double *_double; // QDateTime *_datetime; // QByteArray *_base64; void zero(); public: - eXMLRPCVariant(std::map *_struct); + eXMLRPCVariant(std::map *_struct); eXMLRPCVariant(std::vector *_array); eXMLRPCVariant(__s32 *_i4); eXMLRPCVariant(bool *_boolean); - eXMLRPCVariant(eString *_string); + eXMLRPCVariant(std::string *_string); eXMLRPCVariant(double *_double); // eXMLRPCVariant(QDateTime *_datetime); // eXMLRPCVariant(QByteArray *_base64); eXMLRPCVariant(const eXMLRPCVariant &c); ~eXMLRPCVariant(); - std::map *getStruct(); + std::map *getStruct(); std::vector *getArray(); __s32 *getI4(); bool *getBoolean(); - eString *getString(); + std::string *getString(); double *getDouble(); // QDateTime *getDatetime(); // QByteArray *getBase64(); - void toXML(eString &); + void toXML(std::string &); }; class eXMLRPCResponse: public eHTTPDataSource { XMLTreeParser parser; - eString result; + std::string result; int size; int wptr; int doCall(); @@ -65,15 +65,16 @@ public: }; void xmlrpc_initialize(eHTTPD *httpd); -void xmlrpc_addMethod(eString methodName, int (*)(std::vector&, ePtrList&)); -void xmlrpc_fault(ePtrList &res, int faultCode, eString faultString); -int xmlrpc_checkArgs(eString args, std::vector&, ePtrList &res); +void xmlrpc_addMethod(std::string methodName, int (*)(std::vector&, ePtrList&)); +void xmlrpc_fault(ePtrList &res, int faultCode, std::string faultString); +int xmlrpc_checkArgs(std::string args, std::vector&, ePtrList &res); -class eHTTPXMLRPCResolver: public eHTTPPathResolver +class eHTTPXMLRPCResolver: public iHTTPPathResolver { + DECLARE_REF(eHTTPXMLRPCResolver); public: eHTTPXMLRPCResolver(); - eHTTPDataSource *getDataSource(eString request, eString path, eHTTPConnection *conn); + eHTTPDataSource *getDataSource(std::string request, std::string path, eHTTPConnection *conn); }; #endif