]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/rpcconfig/user_helper.h
Cleaned up some headers.
[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, USERS & us)
18         : ptr(p),
19           users(us)
20     {
21     }
22
23     void GetUserInfo(xmlrpc_c::value * info,
24                      bool hidePassword = false);
25     bool SetUserInfo(const xmlrpc_c::value & info,
26                      const ADMIN * admin,
27                      const std::string & login,
28                      const STORE & store,
29                      TARIFFS * tariffs);
30 private:
31     USER_PTR & ptr;
32     USERS & users;
33 };
34
35 #endif