diff options
Diffstat (limited to 'src/kvilib/ext/kvi_regusersdb.h')
-rw-r--r-- | src/kvilib/ext/kvi_regusersdb.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kvilib/ext/kvi_regusersdb.h b/src/kvilib/ext/kvi_regusersdb.h index 797ae101..6f20422c 100644 --- a/src/kvilib/ext/kvi_regusersdb.h +++ b/src/kvilib/ext/kvi_regusersdb.h @@ -27,7 +27,7 @@ // // REGISTERED USERS // -// Here we manage users resigered by tqmask and their (generic!) properties +// Here we manage users resigered by mask and their (generic!) properties // #include "kvi_settings.h" @@ -74,10 +74,10 @@ private: KviPointerHashTable<TQString,TQString> * m_pPropertyDict; // owned properties KviPointerList<KviIrcMask> * m_pMaskList; // owned masks protected: - // tqmask ownership is transferred! (always!) returns false if the tqmask was already there - bool addMask(KviIrcMask * tqmask); - bool removeMask(KviIrcMask * tqmask); - KviIrcMask * findMask(const KviIrcMask &tqmask); + // mask ownership is transferred! (always!) returns false if the mask was already there + bool addMask(KviIrcMask * mask); + bool removeMask(KviIrcMask * mask); + KviIrcMask * findMask(const KviIrcMask &mask); public: int ignoreFlags() { return m_iIgnoreFlags; }; void setIgnoreFlags(int flags) {m_iIgnoreFlags=flags; }; @@ -86,8 +86,8 @@ public: bool isIgnoreEnabledFor(IgnoreFlags flag); const TQString &name(){ return m_szName; }; - bool matches(const KviIrcMask &tqmask); - bool matchesFixed(const KviIrcMask &tqmask); + bool matches(const KviIrcMask &mask); + bool matchesFixed(const KviIrcMask &mask); bool matchesFixed(const TQString &nick,const TQString &user,const TQString &host); void setProperty(const TQString &name,const TQString &value); @@ -139,7 +139,7 @@ public: public: int nonWildChars(){ return m_iMaskNonWildChars; }; KviRegisteredUser * user(){ return m_pUser; }; - KviIrcMask * tqmask(){ return m_pMask; }; + KviIrcMask * mask(){ return m_pMask; }; }; typedef KviPointerList<KviRegisteredMask> KviRegisteredMaskList; @@ -173,14 +173,14 @@ public: bool removeUser(const TQString &name); bool removeGroup(const TQString &name); KviRegisteredUser * findUserByName(const TQString &name){ return m_pUserDict->find(name); }; - // tqmask must be allocated on the heap and the ownership is transferred! - // returns non zero if there is already an user with this tqmask (returns the pointer to it!) - KviRegisteredUser * addMask(KviRegisteredUser * u,KviIrcMask * tqmask); - bool removeMaskByPointer(KviIrcMask * tqmask); - bool removeMask(const KviIrcMask &tqmask); + // mask must be allocated on the heap and the ownership is transferred! + // returns non zero if there is already an user with this mask (returns the pointer to it!) + KviRegisteredUser * addMask(KviRegisteredUser * u,KviIrcMask * mask); + bool removeMaskByPointer(KviIrcMask * mask); + bool removeMask(const KviIrcMask &mask); KviRegisteredUser * findMatchingUser(const TQString &nick,const TQString &user,const TQString &host); - KviRegisteredUser * findUserWithMask(const KviIrcMask &tqmask); - KviRegisteredMask * findExactMask(const KviIrcMask &tqmask); + KviRegisteredUser * findUserWithMask(const KviIrcMask &mask); + KviRegisteredMask * findExactMask(const KviIrcMask &mask); KviRegisteredMask * findMatchingMask(const TQString &nick,const TQString &user,const TQString &host); //Only used in few places (actually one) of the code, but lot of times;perfect for inlining... //bool isIgnoredUser(const char * nick,const char * user,const char * host); |