]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/rpcconfig/user_helper.h
6421a467805be914ba89f417e2a8c018ac52144b
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / user_helper.h
1 #ifndef __USER_HELPER_H__
2 #define __USER_HELPER_H__
3
4 #include <string>
5
6 #include <xmlrpc-c/base.hpp>
7 #include "../../../users.h"
8 #include "../../../admin.h"
9 #include "base_store.h"
10
11 class USER_HELPER
12 {
13 public:
14     USER_HELPER(user_iter & it)
15         : iter(it)
16     {
17     }
18
19     void GetUserInfo(xmlrpc_c::value * info,
20                      bool hidePassword = false);
21     bool SetUserInfo(const xmlrpc_c::value & info,
22                      const ADMIN & admin,
23                      const std::string & login,
24                      const BASE_STORE & store);
25 private:
26     user_iter & iter;
27 };
28
29 #endif