+public:
+ IMPL(const std::string & server, uint16_t port,
+ const std::string & login, const std::string & password);
+
+ int GetUsers(GET_USERS::CALLBACK f, void * data);
+ int GetUser(const std::string & login, GET_USER::CALLBACK f, void * data);
+ int ChgUser(const std::string & request, CHG_USER::CALLBACK f, void * data);
+ int AuthBy(const std::string & login, AUTH_BY::CALLBACK f, void * data);
+ int SendMessage(const std::string & request, SEND_MESSAGE::CALLBACK f, void * data);
+ int ServerInfo(SERVER_INFO::CALLBACK f, void * data);
+ int CheckUser(const std::string & login, const std::string & password, CHECK_USER::CALLBACK f, void * data);
+
+ const std::string & GetStrError() const;
+ static void Start(void * data, const char * el, const char ** attr);
+ static void End(void * data, const char * el);
+
+private:
+ GET_USERS::PARSER parserGetUsers;
+ GET_USER::PARSER parserGetUser;
+ AUTH_BY::PARSER parserAuthBy;
+ SERVER_INFO::PARSER parserServerInfo;
+ CHG_USER::PARSER parserChgUser;
+ CHECK_USER::PARSER parserCheckUser;
+ SEND_MESSAGE::PARSER parserSendMessage;