From: Maxim Mamontov Date: Tue, 22 Mar 2011 12:05:02 +0000 (+0200) Subject: Add settings interface X-Git-Tag: 2.407-rc3~120 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/be43a75f20a1250f61f9cfc46ba5b25177cd8024?ds=inline Add settings interface --- diff --git a/include/settings.h b/include/settings.h new file mode 100644 index 00000000..e97f3e2a --- /dev/null +++ b/include/settings.h @@ -0,0 +1,45 @@ +/* + * 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 : Maxim Mamontov + */ + +#ifndef SETTINGS_H +#define SETTINGS_H + +#include + +class SETTINGS { +public: + virtual const std::string & GetDirName(size_t num) const = 0; + virtual unsigned GetDetailStatWritePeriod() const = 0; + virtual unsigned GetStatWritePeriod() const = 0; + virtual unsigned GetDayFee() const = 0; + virtual bool GetFullFee() const = 0; + virtual unsigned GetDayResetTraff() const = 0; + virtual bool GetSpreadFee() const = 0; + virtual bool GetFreeMbAllowInet() const = 0; + virtual bool GetDayFeeIsLastDay() const = 0; + virtual bool GetWriteFreeMbTraffCost() const = 0; + virtual bool GetShowFeeInCash() const = 0; + virtual unsigned GetMessageTimeout() const = 0; + virtual const std::string & GetMonitorDir() const = 0; + virtual bool GetMonitoring() const = 0; +}; +//----------------------------------------------------------------------------- + +#endif