X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..a2be5aa7e45c4f8c7561e92a7996170beba66815:/projects/stargazer/plugins/store/files/file_store.h diff --git a/projects/stargazer/plugins/store/files/file_store.h b/projects/stargazer/plugins/store/files/file_store.h index 4734a54d..dbca0f20 100644 --- a/projects/stargazer/plugins/store/files/file_store.h +++ b/projects/stargazer/plugins/store/files/file_store.h @@ -28,9 +28,10 @@ #ifndef FILE_STORE_H #define FILE_STORE_H -#include #include +#include + #include "base_settings.h" #include "base_store.h" #include "conffiles.h" @@ -80,6 +81,7 @@ private: int ParseGroup(const vector & moduleParams, const string & group, uid_t * uid); int ParseMode(const vector & moduleParams, const string & modeStr, mode_t * mode); int ParseYesNo(const string & value, bool * val); + string errorStr; string workDir; @@ -137,7 +139,7 @@ public: double freeMb, const std::string & reason) const; - virtual int WriteDetailedStat(const map * statTree, + virtual int WriteDetailedStat(const map & statTree, time_t lastStat, const string & login) const; @@ -181,8 +183,8 @@ public: virtual int DelService(const string &) const {return 0;}; //virtual BASE_SETTINGS * GetStoreSettings(); - virtual void SetSettings(const MODULE_SETTINGS & s); - virtual int ParseSettings(); + virtual void SetSettings(const MODULE_SETTINGS & s); + virtual int ParseSettings(); virtual const string & GetVersion() const; private: @@ -191,15 +193,15 @@ private: virtual int WriteLogString(const string & str, const string & login) const; virtual int WriteLog2String(const string & str, const string & login) const; - int RemoveDir(const char * path) const; - int GetFilesList(vector * filesList, const string & directory, mode_t mode, const string & ext) const; - mutable string errorStr; - string version; - FILES_STORE_SETTINGS storeSettings; - MODULE_SETTINGS settings; + int RemoveDir(const char * path) const; + int Touch(const std::string & path) const; + + mutable string errorStr; + string version; + FILES_STORE_SETTINGS storeSettings; + MODULE_SETTINGS settings; mutable pthread_mutex_t mutex; }; //----------------------------------------------------------------------------- #endif //FILE_STORE_H -