diff options
Diffstat (limited to 'src/kvilib/irc/kvi_ircuserdb.h')
-rw-r--r-- | src/kvilib/irc/kvi_ircuserdb.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/src/kvilib/irc/kvi_ircuserdb.h b/src/kvilib/irc/kvi_ircuserdb.h index bdf7c51c..ec967331 100644 --- a/src/kvilib/irc/kvi_ircuserdb.h +++ b/src/kvilib/irc/kvi_ircuserdb.h @@ -39,7 +39,7 @@ class KVILIB_API KviIrcUserEntry { friend class KviIrcUserDataBase; public: - KviIrcUserEntry(const QString &user,const QString &host); + KviIrcUserEntry(const TQString &user,const TQString &host); ~KviIrcUserEntry(); enum Gender { @@ -49,11 +49,11 @@ public: }; protected: - QString m_szUser; - QString m_szHost; + TQString m_szUser; + TQString m_szHost; - QString m_szServer; - QString m_szRealName; + TQString m_szServer; + TQString m_szRealName; int m_iHops; Gender m_eGender; @@ -65,29 +65,29 @@ protected: bool m_bBot; bool m_bNotFoundRegUserLoockup; - QString m_szRegisteredUserName; - QString m_szLastRegisteredMatchNick; + TQString m_szRegisteredUserName; + TQString m_szLastRegisteredMatchNick; - QColor m_cachedColor; + TQColor m_cachedColor; bool m_bUseCustomColor; public: Gender gender() { return m_eGender; }; void setBot(bool bIsBot) { m_bBot = bIsBot; }; bool isBot() { return m_bBot; }; void setGender(Gender g) { m_eGender=g; }; - void setUser(const QString &user) { m_szUser = user; }; + void setUser(const TQString &user) { m_szUser = user; }; bool hasUser() { return (!m_szUser.isEmpty()); }; - void setHost(const QString &host) { m_szHost = host; }; + void setHost(const TQString &host) { m_szHost = host; }; bool hasHost() { return (!m_szHost.isEmpty()); }; - void setServer(const QString &serv) { m_szServer = serv; }; - void setRealName(const QString &rn); + void setServer(const TQString &serv) { m_szServer = serv; }; + void setRealName(const TQString &rn); void setHops(int hops) { m_iHops = hops; }; - const QString &user() { return m_szUser; }; - const QString &host() { return m_szHost; }; + const TQString &user() { return m_szUser; }; + const TQString &host() { return m_szHost; }; bool hasServer() { return (!m_szServer.isEmpty()); }; - const QString &server() { return m_szServer; }; + const TQString &server() { return m_szServer; }; bool hasRealName() { return (!m_szRealName.isEmpty()); }; - const QString &realName() { return m_szRealName; }; + const TQString &realName() { return m_szRealName; }; bool hasHops() { return m_iHops >= 0; }; int hops() { return m_iHops; }; KviAvatar * avatar() { return m_pAvatar; }; @@ -113,32 +113,33 @@ public: #define KVI_USERFLAG_MODEMASK KVI_USERFLAG_MASK -class KVILIB_API KviIrcUserDataBase : public QObject +class KVILIB_API KviIrcUserDataBase : public TQObject { Q_OBJECT + TQ_OBJECT public: KviIrcUserDataBase(); ~KviIrcUserDataBase(); private: - KviPointerHashTable<QString,KviIrcUserEntry> * m_pDict; + KviPointerHashTable<TQString,KviIrcUserEntry> * m_pDict; public: void clear(); - KviIrcUserEntry * insertUser(const QString &nick,const QString &user,const QString &hostname); - KviIrcUserEntry * find(const QString &nick){ return m_pDict->find(nick); }; - void removeUser(const QString &nick,KviIrcUserEntry * e); - KviPointerHashTable<QString,KviIrcUserEntry> * dict(){ return m_pDict; }; + KviIrcUserEntry * insertUser(const TQString &nick,const TQString &user,const TQString &hostname); + KviIrcUserEntry * tqfind(const TQString &nick){ return m_pDict->tqfind(nick); }; + void removeUser(const TQString &nick,KviIrcUserEntry * e); + KviPointerHashTable<TQString,KviIrcUserEntry> * dict(){ return m_pDict; }; - KviRegisteredUser* registeredUser(const QString & nick); - KviRegisteredUser* registeredUser(const QString & nick,const QString & user,const QString & host); + KviRegisteredUser* registeredUser(const TQString & nick); + KviRegisteredUser* registeredUser(const TQString & nick,const TQString & user,const TQString & host); - bool haveCustomColor(const QString & nick); - QColor* customColor(const QString & nick); + bool haveCustomColor(const TQString & nick); + TQColor* customColor(const TQString & nick); void setupConnectionWithReguserDb(); protected slots: - void registeredUserRemoved(const QString&); - void registeredUserChanged(const QString&); - void registeredUserAdded (const QString&); + void registeredUserRemoved(const TQString&); + void registeredUserChanged(const TQString&); + void registeredUserAdded (const TQString&); void registeredDatabaseCleared(); }; |