git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 37. In the TariffChangeIsAllowed() function return "" added and
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
rpcconfig
/
tariffs_methods.cpp
diff --git
a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
index 10985cced4f65c70498895a7ebd584965dca6253..77d73b02091d379cca4e85565756ea8f736d58c7 100644
(file)
--- a/
projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
+++ b/
projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
@@
-1,10
+1,12
@@
-#include "rpcconfig.h"
+#include <ostream> // xmlrpc-c devs have missed something :)
+
#include "tariffs_methods.h"
#include "tariffs_methods.h"
+#include "rpcconfig.h"
#include "tariff_helper.h"
#include "tariff_helper.h"
-#include "tariffs.h"
-#include "users.h"
-#include "admins.h"
-#include "admin.h"
+#include "
stg/
tariffs.h"
+#include "
stg/
users.h"
+#include "
stg/
admins.h"
+#include "
stg/
admin.h"
void METHOD_TARIFF_GET::execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr)
void METHOD_TARIFF_GET::execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr)
@@
-57,7
+59,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
ADMIN * admin;
ADMIN * admin;
-if (admins->Find
Admin
(adminInfo.admin, &admin))
+if (admins->Find(adminInfo.admin, &admin))
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;
@@
-125,7
+127,6
@@
void METHOD_TARIFF_ADD::execute(xmlrpc_c::paramList const & paramList,
{
std::string cookie = paramList.getString(0);
std::string tariff = paramList.getString(1);
{
std::string cookie = paramList.getString(0);
std::string tariff = paramList.getString(1);
-std::string enc;
paramList.verifyEnd(2);
ADMIN_INFO adminInfo;
paramList.verifyEnd(2);
ADMIN_INFO adminInfo;
@@
-138,7
+139,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
ADMIN * admin;
ADMIN * admin;
-if (admins->Find
Admin
(adminInfo.admin, &admin))
+if (admins->Find(adminInfo.admin, &admin))
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;
@@
-170,7
+171,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
ADMIN * admin;
ADMIN * admin;
-if (admins->Find
Admin
(adminInfo.admin, &admin))
+if (admins->Find(adminInfo.admin, &admin))
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;
{
*retvalPtr = xmlrpc_c::value_boolean(false);
return;