]> git.stg.codes - stg.git/blob - projects/stargazer/plugin_mgr.h
79b6cae99b78f2af723a340a9f5235f541d31b80
[stg.git] / projects / stargazer / plugin_mgr.h
1 #ifndef __STG_PLUGIN_MGR_H__
2 #define __STG_PLUGIN_MGR_H__
3
4 /*
5  *    This program is free software; you can redistribute it and/or modify
6  *    it under the terms of the GNU General Public License as published by
7  *    the Free Software Foundation; either version 2 of the License, or
8  *    (at your option) any later version.
9  *
10  *    This program is distributed in the hope that it will be useful,
11  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *    GNU General Public License for more details.
14  *
15  *    You should have received a copy of the GNU General Public License
16  *    along with this program; if not, write to the Free Software
17  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 /*
21  *    Author : Maxim Mamontov <faust@stargazer.dp.ua>
22  */
23
24 #include "stg/module_settings.h"
25
26 #include <vector>
27
28 class SETTINGS_IMPL;
29 class PLUGIN_RUNNER;
30 class STORE;
31 class ADMINS_IMPL;
32 class TARIFFS_IMPL;
33 class SERVICES_IMPL;
34 class CORPORATIONS_IMPL;
35 class USERS_IMPL;
36 class TRAFFCOUNTER_IMPL;
37 class STG_LOGGER;
38
39 namespace STG
40 {
41
42 class PluginManager
43 {
44     public:
45         PluginManager(const SETTINGS_IMPL& settings,
46                       STORE& store, ADMINS_IMPL& admins, TARIFFS_IMPL& tariffs,
47                       SERVICES_IMPL& services, CORPORATIONS_IMPL& corporations,
48                       USERS_IMPL& users, TRAFFCOUNTER_IMPL& traffcounter);
49         ~PluginManager();
50
51         void reload();
52
53     private:
54         std::vector<PLUGIN_RUNNER*> m_modules;
55         STG_LOGGER & m_log;
56 };
57
58 } // namespace STG
59
60 #endif