X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/78e14695fc1b743f225a5aa30ca98784bce576c1..ede91934442fd804d7b818971a44e3ad795cb01f:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 2d5b808f..12fa7383 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -46,8 +46,9 @@ #include "settings.h" #include "user.h" -#include "users.h" -#include "admins.h" +#include "users_impl.h" +#include "admins_impl.h" +#include "tariffs_impl.h" #include "common.h" #include "traffcounter.h" #include "base_plugin.h" @@ -549,9 +550,9 @@ if (loop.Start()) dataStore = storeLoader.GetStore(); WriteServLog("Storage plugin: %s. Loading successfull.", dataStore->GetVersion().c_str()); -tariffs = new TARIFFS(dataStore); -admins = new ADMINS(dataStore); -users = new USERS(settings, dataStore, tariffs, admins->GetSysAdmin()); +tariffs = new TARIFFS_IMPL(dataStore); +admins = new ADMINS_IMPL(dataStore); +users = new USERS_IMPL(settings, dataStore, tariffs, *admins->GetSysAdmin()); traffCnt = new TRAFFCOUNTER(users, tariffs, settings->GetRulesFileName()); traffCnt->SetMonitorDir(settings->GetMonitorDir()); @@ -759,5 +760,3 @@ delete settings; return 0; } //----------------------------------------------------------------------------- - -