]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/configuration/rpcconfig/messages_methods.h
Add notifications in test tariffs class
[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 private:
23     RPC_CONFIG * config;
24     USERS * users;
25 };
26
27 #endif