From: Maxim Mamontov Date: Fri, 26 Nov 2010 15:03:50 +0000 (+0200) Subject: Уменьшена зависимостть между заголовочными файлами путем использования X-Git-Tag: 2.407-rc3~353 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/70778b6263943f67b0e85aa50a16d48805d714e5 Уменьшена зависимостть между заголовочными файлами путем использования forward declaration --- diff --git a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp index c059ba61..46905b15 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp @@ -1,7 +1,17 @@ -#include "rpcconfig.h" - #include #include + +#include "rpcconfig.h" + +#include "../../../admin.h" +#include "../../../admins.h" +#include "../../../users.h" +#include "../../../tariffs.h" +#include "../../../traffcounter.h" +#include "../../../settings.h" +#include "base_store.h" +#include "base_settings.h" + #include "info_methods.h" #include "users_methods.h" #include "tariffs_methods.h" @@ -311,6 +321,7 @@ rpcRegistry.addMethod("stargazer.get_users", methodGetUsersPtr); xmlrpc_c::methodPtr const methodChgUserPtr(new METHOD_USER_CHG( this, admins, + tariffs, store, users )); diff --git a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.h b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.h index 170f8e33..21a8a3d4 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.h @@ -13,20 +13,17 @@ #include "os_int.h" #include "base_plugin.h" -#include "base_store.h" -#include "base_settings.h" #include "admin_conf.h" -#include "../../../admin.h" -#include "../../../admins.h" -#include "../../../users.h" -#include "../../../tariffs.h" -#include "../../../traffcounter.h" -#include "../../../settings.h" #define RPC_CONFIG_VERSION "Stargazer RPC v. 0.2" extern "C" BASE_PLUGIN * GetPlugin(); +class ADMINS; +class TARIFFS; +class USERS; +class BASE_STORE; + class RPC_CONFIG_SETTINGS { public: diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp index 36194e36..23916ae7 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp @@ -1,6 +1,10 @@ #include "rpcconfig.h" #include "tariffs_methods.h" #include "tariff_helper.h" +#include "../../../tariffs.h" +#include "../../../users.h" +#include "../../../admins.h" +#include "../../../admin.h" void METHOD_TARIFF_GET::execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr) diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h index fdd788d4..3f99b349 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h @@ -4,9 +4,10 @@ #include #include -#include "../../../tariffs.h" - class RPC_CONFIG; +class TARIFFS; +class USERS; +class ADMINS; class METHOD_TARIFF_GET : public xmlrpc_c::method { public: