X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2da962edada912d8081f7e15db0ac887b98b179e..9af0b6faad1f5e6ca2206f7cddc02885a08e718c:/stglibs/srvconf.lib/parsers/get_user.h?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_user.h b/stglibs/srvconf.lib/parsers/get_user.h index 12050752..a0e3e3a4 100644 --- a/stglibs/srvconf.lib/parsers/get_user.h +++ b/stglibs/srvconf.lib/parsers/get_user.h @@ -37,15 +37,19 @@ namespace GET_USER class PARSER: public STG::PARSER { public: - PARSER(CALLBACK f, void * data); + typedef GET_USER::INFO INFO; + + PARSER(CALLBACK f, void * data, const std::string & encoding); virtual ~PARSER(); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); + void Failure(const std::string & reason) { callback(false, reason, info, data); } private: PROPERTY_PARSERS propertyParsers; CALLBACK callback; void * data; + std::string encoding; INFO info; int depth; bool parsingAnswer; @@ -53,6 +57,8 @@ private: void ParseUser(const char * el, const char ** attr); void ParseUserParams(const char * el, const char ** attr); + void ParseAuthBy(const char * el, const char ** attr); + void ParseServices(const char * el, const char ** attr); }; } // namespace GET_USER