From: Maxim Mamontov Date: Thu, 17 Mar 2011 10:41:00 +0000 (+0200) Subject: Fix filename for plugin interface X-Git-Tag: 2.407-rc3~155 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/3517e32cdc4ef924a9dcac99c873553208678824 Fix filename for plugin interface --- diff --git a/include/base_plugin.h b/include/base_plugin.h deleted file mode 100644 index 16dfa5fa..00000000 --- a/include/base_plugin.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* - * Author : Boris Mikhailenko - */ - -/* - $Revision: 1.12 $ - $Date: 2010/03/04 11:53:14 $ - $Author: faust $ -*/ - - -#ifndef BASE_PLUGIN_H -#define BASE_PLUGIN_H - -#include -#include "base_settings.h" -#include "noncopyable.h" -#include "os_int.h" - -using namespace std; - -class ADMINS; -class USERS; -class TARIFFS; -class TRAFFCOUNTER; -class SETTINGS; -class BASE_STORE; - -//----------------------------------------------------------------------------- -class BASE_PLUGIN : private NONCOPYABLE -{ -public: - virtual ~BASE_PLUGIN(){}; - virtual void SetUsers(USERS * u) = 0; - virtual void SetTariffs(TARIFFS * t) = 0; - virtual void SetAdmins(ADMINS * a) = 0; - virtual void SetTraffcounter(TRAFFCOUNTER * tc) = 0; - virtual void SetStore(BASE_STORE * st) = 0; - virtual void SetStgSettings(const SETTINGS * s) = 0; - virtual void SetSettings(const MODULE_SETTINGS & s) = 0; - virtual int ParseSettings() = 0; - - virtual int Start() = 0; - virtual int Stop() = 0; - virtual int Reload() = 0; - virtual bool IsRunning() = 0; - virtual const string & GetStrError() const = 0; - virtual const string GetVersion() const = 0; - virtual uint16_t GetStartPosition() const = 0; - virtual uint16_t GetStopPosition() const = 0; -}; -//----------------------------------------------------------------------------- -#endif - - diff --git a/include/plugin.h b/include/plugin.h new file mode 100644 index 00000000..16dfa5fa --- /dev/null +++ b/include/plugin.h @@ -0,0 +1,71 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * Author : Boris Mikhailenko + */ + +/* + $Revision: 1.12 $ + $Date: 2010/03/04 11:53:14 $ + $Author: faust $ +*/ + + +#ifndef BASE_PLUGIN_H +#define BASE_PLUGIN_H + +#include +#include "base_settings.h" +#include "noncopyable.h" +#include "os_int.h" + +using namespace std; + +class ADMINS; +class USERS; +class TARIFFS; +class TRAFFCOUNTER; +class SETTINGS; +class BASE_STORE; + +//----------------------------------------------------------------------------- +class BASE_PLUGIN : private NONCOPYABLE +{ +public: + virtual ~BASE_PLUGIN(){}; + virtual void SetUsers(USERS * u) = 0; + virtual void SetTariffs(TARIFFS * t) = 0; + virtual void SetAdmins(ADMINS * a) = 0; + virtual void SetTraffcounter(TRAFFCOUNTER * tc) = 0; + virtual void SetStore(BASE_STORE * st) = 0; + virtual void SetStgSettings(const SETTINGS * s) = 0; + virtual void SetSettings(const MODULE_SETTINGS & s) = 0; + virtual int ParseSettings() = 0; + + virtual int Start() = 0; + virtual int Stop() = 0; + virtual int Reload() = 0; + virtual bool IsRunning() = 0; + virtual const string & GetStrError() const = 0; + virtual const string GetVersion() const = 0; + virtual uint16_t GetStartPosition() const = 0; + virtual uint16_t GetStopPosition() const = 0; +}; +//----------------------------------------------------------------------------- +#endif + +