git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use async-radius.
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
rpcconfig
/
admins_methods.h
diff --git
a/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h
b/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h
index d353c96d78f7cdbef69a5f505a632a63aeb8cbaa..43c8073a10ad894400e4d5e48d1ffccfce5be214 100644
(file)
--- a/
projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h
+++ b/
projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h
@@
-1,18
+1,21
@@
-#ifndef __ADMINS_METHODS_H__
-#define __ADMINS_METHODS_H__
+#pragma once
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
-#include "stg/admins.h"
-#include "stg/admin.h"
+namespace STG
+{
+
+struct Admins;
+
+}
class RPC_CONFIG;
class METHOD_ADMIN_GET : public xmlrpc_c::method {
public:
METHOD_ADMIN_GET(RPC_CONFIG * c,
class RPC_CONFIG;
class METHOD_ADMIN_GET : public xmlrpc_c::method {
public:
METHOD_ADMIN_GET(RPC_CONFIG * c,
-
ADMINS
* a)
+
STG::Admins
* a)
: config(c),
admins(a)
{
: config(c),
admins(a)
{
@@
-20,15
+23,19
@@
public:
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
private:
+ METHOD_ADMIN_GET(const METHOD_ADMIN_GET & rvalue);
+ METHOD_ADMIN_GET & operator=(const METHOD_ADMIN_GET & rvalue);
+
RPC_CONFIG * config;
RPC_CONFIG * config;
-
ADMINS
* admins;
+
STG::Admins
* admins;
};
class METHOD_ADMIN_ADD : public xmlrpc_c::method {
public:
METHOD_ADMIN_ADD(RPC_CONFIG * c,
};
class METHOD_ADMIN_ADD : public xmlrpc_c::method {
public:
METHOD_ADMIN_ADD(RPC_CONFIG * c,
-
ADMINS
* a)
+
STG::Admins
* a)
: config(c),
admins(a)
{
: config(c),
admins(a)
{
@@
-36,15
+43,19
@@
public:
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
private:
+ METHOD_ADMIN_ADD(const METHOD_ADMIN_ADD & rvalue);
+ METHOD_ADMIN_ADD & operator=(const METHOD_ADMIN_ADD & rvalue);
+
RPC_CONFIG * config;
RPC_CONFIG * config;
-
ADMINS
* admins;
+
STG::Admins
* admins;
};
class METHOD_ADMIN_DEL : public xmlrpc_c::method {
public:
METHOD_ADMIN_DEL(RPC_CONFIG * c,
};
class METHOD_ADMIN_DEL : public xmlrpc_c::method {
public:
METHOD_ADMIN_DEL(RPC_CONFIG * c,
-
ADMINS
* a)
+
STG::Admins
* a)
: config(c),
admins(a)
{
: config(c),
admins(a)
{
@@
-52,15
+63,19
@@
public:
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
private:
+ METHOD_ADMIN_DEL(const METHOD_ADMIN_DEL & rvalue);
+ METHOD_ADMIN_DEL & operator=(const METHOD_ADMIN_DEL & rvalue);
+
RPC_CONFIG * config;
RPC_CONFIG * config;
-
ADMINS
* admins;
+
STG::Admins
* admins;
};
class METHOD_ADMIN_CHG : public xmlrpc_c::method {
public:
METHOD_ADMIN_CHG(RPC_CONFIG * c,
};
class METHOD_ADMIN_CHG : public xmlrpc_c::method {
public:
METHOD_ADMIN_CHG(RPC_CONFIG * c,
-
ADMINS
* a)
+
STG::Admins
* a)
: config(c),
admins(a)
{
: config(c),
admins(a)
{
@@
-68,15
+83,19
@@
public:
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
private:
+ METHOD_ADMIN_CHG(const METHOD_ADMIN_CHG & rvalue);
+ METHOD_ADMIN_CHG & operator=(const METHOD_ADMIN_CHG & rvalue);
+
RPC_CONFIG * config;
RPC_CONFIG * config;
-
ADMINS
* admins;
+
STG::Admins
* admins;
};
class METHOD_ADMINS_GET : public xmlrpc_c::method {
public:
METHOD_ADMINS_GET(RPC_CONFIG * c,
};
class METHOD_ADMINS_GET : public xmlrpc_c::method {
public:
METHOD_ADMINS_GET(RPC_CONFIG * c,
-
ADMINS
* a)
+
STG::Admins
* a)
: config(c),
admins(a)
{
: config(c),
admins(a)
{
@@
-84,9
+103,11
@@
public:
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
private:
+ METHOD_ADMINS_GET(const METHOD_ADMINS_GET & rvalue);
+ METHOD_ADMINS_GET & operator=(const METHOD_ADMINS_GET & rvalue);
+
RPC_CONFIG * config;
RPC_CONFIG * config;
-
ADMINS
* admins;
+
STG::Admins
* admins;
};
};
-
-#endif