X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/81087d4ae038fe0d793ee56e14120cd216ea3a7f..155afaf9fb83e380a23877c2fba74d0cc5c26926:/projects/stargazer/plugins/other/ping/ping.h diff --git a/projects/stargazer/plugins/other/ping/ping.h b/projects/stargazer/plugins/other/ping/ping.h index 9f6304d8..ea18703f 100644 --- a/projects/stargazer/plugins/other/ping/ping.h +++ b/projects/stargazer/plugins/other/ping/ping.h @@ -29,7 +29,7 @@ class CHG_CURRIP_NOTIFIER_PING: public PROPERTY_NOTIFIER_BASE public: CHG_CURRIP_NOTIFIER_PING(const PING & p, user_iter u) : user(u), ping(p) {} void Notify(const uint32_t & oldIP, const uint32_t & newIP); - user_iter GetUser() { return user; } + user_iter GetUser() const { return user; } private: user_iter user; @@ -41,7 +41,7 @@ class CHG_IPS_NOTIFIER_PING: public PROPERTY_NOTIFIER_BASE public: CHG_IPS_NOTIFIER_PING(const PING & p, user_iter u) : user(u), ping(p) {} void Notify(const USER_IPS & oldIPS, const USER_IPS & newIPS); - user_iter GetUser() { return user; } + user_iter GetUser() const { return user; } private: user_iter user; @@ -77,7 +77,7 @@ public: virtual ~PING_SETTINGS() {} const string& GetStrError() const { return errorStr; } int ParseSettings(const MODULE_SETTINGS & s); - int GetPingDelay() { return pingDelay; } + int GetPingDelay() const { return pingDelay; } private: int ParseIntInRange(const string & str, int min, int max, int * val);