X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/82c7b78d7b7cf797f0663c96f44b092103802035..46b0747592074017ff0ea4b33d4a7194235886e5:/stglibs/srvconf.lib/include/stg/servconf.h diff --git a/stglibs/srvconf.lib/include/stg/servconf.h b/stglibs/srvconf.lib/include/stg/servconf.h deleted file mode 100644 index e55cff2c..00000000 --- a/stglibs/srvconf.lib/include/stg/servconf.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* - * Author : Boris Mikhailenko - */ - - /* - $Revision: 1.10 $ - $Date: 2009/03/17 09:52:35 $ - $Author: faust $ - */ - -#ifndef __STG_STGLIBS_SERVCONF_H__ -#define __STG_STGLIBS_SERVCONF_H__ - -#include "stg/parser_server_info.h" -#include "stg/parser_check_user.h" -#include "stg/parser_get_user.h" -#include "stg/parser_get_users.h" -#include "stg/parser_chg_user.h" -#include "stg/parser_send_message.h" - -#include "stg/servconf_types.h" - -#include "stg/os_int.h" - -#include - -namespace STG -{ - -class SERVCONF -{ -public: - SERVCONF(const std::string & server, uint16_t port, - const std::string & login, const std::string & password); - ~SERVCONF(); - - int GetUsers(PARSER_GET_USERS::CALLBACK f, void * data); - int GetUser(const std::string & login, PARSER_GET_USER::CALLBACK f, void * data); - int ChgUser(const std::string & request, PARSER_CHG_USER::CALLBACK f, void * data); - int AuthBy(const std::string & login, AUTH_BY::CALLBACK f, void * data); - int SendMessage(const std::string & request, PARSER_SEND_MESSAGE::CALLBACK f, void * data); - int ServerInfo(PARSER_SERVER_INFO::CALLBACK f, void * data); - int CheckUser(const std::string & login, const std::string & password, PARSER_CHECK_USER::CALLBACK f, void * data); - - const std::string & GetStrError() const; - -private: - class IMPL; - IMPL * pImpl; -}; - -} // namespace STG - -#endif