/* */ #ifndef D_XML_RPC_RESPONSE_H #define D_XML_RPC_RESPONSE_H #include "common.h" #include #include "ValueBase.h" namespace aria2 { namespace xmlrpc { struct XmlRpcResponse { // 0 for success, non-zero for error int code; SharedHandle param; XmlRpcResponse(int code, const SharedHandle& param); XmlRpcResponse(const XmlRpcResponse& c); ~XmlRpcResponse(); XmlRpcResponse& operator=(const XmlRpcResponse& c); std::string toXml(bool gzip = false) const; }; } // namespace xmlrpc } // namespace aria2 #endif // D_XML_RPC_RESPONSE_H