]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/rpcconfig/user_helper.h
Merge branch 'master' into full-month-stats
[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
8 #include "stg/users.h"
9
10 class ADMIN;
11 class STORE;
12 class TARIFFS;
13
14 class USER_HELPER
15 {
16 public:
17     USER_HELPER(USER_PTR & p)
18         : ptr(p)
19     {
20     }
21
22     void GetUserInfo(xmlrpc_c::value * info,
23                      bool hidePassword = false);
24     bool SetUserInfo(const xmlrpc_c::value & info,
25                      const ADMIN * admin,
26                      const std::string & login,
27                      const STORE & store,
28                      TARIFFS * tariffs);
29 private:
30     USER_PTR & ptr;
31 };
32
33 #endif