X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d05a2f0b9869c82f8c02c37e2a8a158dee671a4c..2d8751468836d2c5d92dee3328f22ceefbc0c47b:/include/stg/user.h?ds=inline diff --git a/include/stg/user.h b/include/stg/user.h index f0f77bc0..204899ac 100644 --- a/include/stg/user.h +++ b/include/stg/user.h @@ -35,6 +35,7 @@ class AUTH; class USER { public: + virtual ~USER() {} virtual int WriteConf() = 0; virtual int WriteStat() = 0; @@ -68,10 +69,10 @@ public: virtual bool GetConnected() const = 0; virtual time_t GetConnectedModificationTime() const = 0; virtual int GetAuthorized() const = 0; - virtual int Authorize(uint32_t ip, + /*virtual int Authorize(uint32_t ip, uint32_t enabledDirs, const AUTH * auth) = 0; - virtual void Unauthorize(const AUTH * auth) = 0; + virtual void Unauthorize(const AUTH * auth) = 0;*/ virtual bool IsAuthorizedBy(const AUTH * auth) const = 0; virtual int AddMessage(STG_MSG * msg) = 0; @@ -99,5 +100,6 @@ public: }; typedef USER * USER_PTR; +typedef const USER * CONST_USER_PTR; #endif