X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bd66b226090397493de8d87649b2bbad3ac89e36..2501ff5278198b17c195536d0953cbb40d1a5d3b:/projects/stargazer/plugins/store/firebird/firebird_store.h diff --git a/projects/stargazer/plugins/store/firebird/firebird_store.h b/projects/stargazer/plugins/store/firebird/firebird_store.h index 2bd094bd..38ff457d 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store.h +++ b/projects/stargazer/plugins/store/firebird/firebird_store.h @@ -35,8 +35,9 @@ #include #include "stg/store.h" -#include "stg/stg_locker.h" +#include "stg/locker.h" #include "stg/ibpp.h" +#include "stg/logger.h" struct ToLower { char operator() (char c) const { return std::tolower(c); } @@ -114,21 +115,26 @@ public: int RestoreService(SERVICE_CONF * sc, const std::string & name) const; int AddService(const std::string & name) const; int DelService(const std::string & name) const; + private: + FIREBIRD_STORE(const FIREBIRD_STORE & rvalue); + FIREBIRD_STORE & operator=(const FIREBIRD_STORE & rvalue); + std::string version; mutable std::string strError; - mutable std::string db_server, db_database, db_user, db_password; + std::string db_server, db_database, db_user, db_password; MODULE_SETTINGS settings; mutable IBPP::Database db; mutable pthread_mutex_t mutex; - mutable IBPP::TIL til; - mutable IBPP::TLR tlr; + IBPP::TIL til; + IBPP::TLR tlr; + PLUGIN_LOGGER logger; int SaveStat(const USER_STAT & stat, const std::string & login, int year = 0, int month = 0) const; }; -time_t ts2time_t(const IBPP::Timestamp & ts) const; -void time_t2ts(time_t t, IBPP::Timestamp * ts) const; -void ym2date(int year, int month, IBPP::Date * date) const; +time_t ts2time_t(const IBPP::Timestamp & ts); +void time_t2ts(time_t t, IBPP::Timestamp * ts); +void ym2date(int year, int month, IBPP::Date * date); #endif //FIREBIRD_STORE_H