set_test_name("Check empty lines and comments");
{
- ofstream f("/tmp/test.cf");
+ std::ofstream f("/tmp/test.cf");
ensure("Correct construction (part 3)", f);
const std::string & GetPassword() const { return password; }
const std::string & GetLogin() const { return login; }
PRIV const * GetPriv() const { return &priv; }
- uint16_t GetPrivAsInt() const { return priv.ToInt(); }
+ uint32_t GetPrivAsInt() const { return priv.ToInt(); }
const ADMIN_CONF & GetConf() const { return conf; }
uint32_t GetIP() const { return ip; }
std::string GetIPStr() const { return inet_ntostring(ip); }
int Reload() { return 0; }
bool IsRunning() { return true; }
const std::string & GetStrError() const { return strError; }
- const std::string GetVersion() const { return ""; }
+ std::string GetVersion() const { return ""; }
uint16_t GetStartPosition() const { return 0; }
uint16_t GetStopPosition() const { return 0; }
bool GetReconnectOnTariffChange() const { return false; }
const std::string & GetMonitorDir() const { return monitorDir; }
bool GetMonitoring() const { return false; }
+ const std::vector<std::string> & GetScriptParams() const { return scriptParams; }
private:
std::string dirName;
std::string scriptsDir;
std::string monitorDir;
+ std::vector<std::string> scriptParams;
};
#endif
int EditMessage(const STG_MSG & /*msg*/, const std::string & /*login*/) const { return 0; }
int GetMessage(uint64_t /*id*/, STG_MSG * /*msg*/, const std::string & /*login*/) const { return 0; }
int DelMessage(uint64_t /*id*/, const std::string & /*login*/) const { return 0; }
- int GetMessageHdrs(vector<STG_MSG_HDR> * /*hdrsList*/, const std::string & /*login*/) const { return 0; }
+ int GetMessageHdrs(std::vector<STG_MSG_HDR> * /*hdrsList*/, const std::string & /*login*/) const { return 0; }
int SaveMonthStat(const USER_STAT & /*stat*/, int /*month*/, int /*year*/, const std::string & /*login*/) const { return 0; }
int FindByName(const std::string & /*login*/, USER_PTR * /*user*/)
{ return -1; }
+ int FindByName(const std::string & /*login*/, CONST_USER_PTR * /*user*/) const
+ { return -1; }
bool TariffInUse(const std::string & /*tariffName*/) const
{ return -1; }
bool Authorize(const std::string &, uint32_t, uint32_t, const AUTH *)
{ return false; }
- bool Unauthorize(const std::string &, const AUTH *)
+ bool Unauthorize(const std::string &, const AUTH *, const std::string &)
{ return false; }
int ReadUsers() { return 0; }
int FindByIPIdx(uint32_t /*ip*/, USER_PTR * /*user*/) const
{ return -1; }
bool IsIPInIndex(uint32_t /*ip*/) const { return false; }
+ bool IsIPInUse(uint32_t, const std::string &, CONST_USER_PTR *) const { return false; }
int OpenSearch() { return 0; }
int SearchNext(int /*handle*/, USER_PTR * /*u*/) { return -1; }