/* * 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 PLUGIN_H #define PLUGIN_H #include #include "noncopyable.h" #include "os_int.h" #include "admins.h" #include "users.h" #include "tariffs.h" class TRAFFCOUNTER; class SETTINGS; class STORE; struct MODULE_SETTINGS; class PLUGIN : private NONCOPYABLE { public: 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(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 std::string & GetStrError() const = 0; virtual const std::string GetVersion() const = 0; virtual uint16_t GetStartPosition() const = 0; virtual uint16_t GetStopPosition() const = 0; }; #endif