]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/rpcconfig/messages_methods.h
Merge branch 'stg-2.409-radius'
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / messages_methods.h
1 #ifndef __MESSAGES_METHODS_H__
2 #define __MESSAGES_METHODS_H__
3
4 #include <xmlrpc-c/base.hpp>
5 #include <xmlrpc-c/registry.hpp>
6
7 #include "stg/users.h"
8
9 class RPC_CONFIG;
10
11 class METHOD_MESSAGE_SEND : public xmlrpc_c::method {
12 public:
13     METHOD_MESSAGE_SEND(RPC_CONFIG * c,
14                      USERS * u)
15         : config(c),
16           users(u)
17     {
18     }
19
20     void execute(xmlrpc_c::paramList const & paramList,
21                  xmlrpc_c::value * const retvalPtr);
22
23 private:
24     METHOD_MESSAGE_SEND(const METHOD_MESSAGE_SEND & rvalue);
25     METHOD_MESSAGE_SEND & operator=(const METHOD_MESSAGE_SEND & rvalue);
26
27     RPC_CONFIG * config;
28     USERS * users;
29 };
30
31 #endif