X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/959549949c215dc3ef0eae08ae298a0836f85d65..56bcf61076cf2e51bd6ae9f0f50b53d48444b684:/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 13c3a3fa..361a4d2a 100644 --- a/projects/stargazer/plugins/store/files/file_store.h +++ b/projects/stargazer/plugins/store/files/file_store.h @@ -28,8 +28,10 @@ #ifndef FILE_STORE_H #define FILE_STORE_H -#include #include +#include + +#include #include "base_settings.h" #include "base_store.h" @@ -59,7 +61,7 @@ public: gid_t GetStatGID() const; mode_t GetConfMode() const; - //mode_t GetConfModeDir() const; + mode_t GetConfModeDir() const; uid_t GetConfUID() const; gid_t GetConfGID() const; @@ -80,6 +82,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; @@ -181,8 +184,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,12 +194,13 @@ 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; }; //-----------------------------------------------------------------------------