diff options
Diffstat (limited to 'src/kvilib/irc/kvi_useridentity.h')
-rw-r--r-- | src/kvilib/irc/kvi_useridentity.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/src/kvilib/irc/kvi_useridentity.h b/src/kvilib/irc/kvi_useridentity.h index c1018f1a..bcc5e1b4 100644 --- a/src/kvilib/irc/kvi_useridentity.h +++ b/src/kvilib/irc/kvi_useridentity.h @@ -42,71 +42,71 @@ public: { } protected: - QString m_szId; // the identity set name + TQString m_szId; // the identity set name - QString m_szNickName; + TQString m_szNickName; - QString m_szAltNickName1; - QString m_szAltNickName2; - QString m_szAltNickName3; + TQString m_szAltNickName1; + TQString m_szAltNickName2; + TQString m_szAltNickName3; - QString m_szUserName; - QString m_szRealName; - QString m_szPassword; + TQString m_szUserName; + TQString m_szRealName; + TQString m_szPassword; KviPixmap m_pixAvatar; - QString m_szPartMessage; - QString m_szQuitMessage; + TQString m_szPartMessage; + TQString m_szQuitMessage; - QString m_szAge; - QString m_szGender; - QString m_szLocation; - QString m_szLanguages; - QString m_szOtherInfo; + TQString m_szAge; + TQString m_szGender; + TQString m_szLocation; + TQString m_szLanguages; + TQString m_szOtherInfo; - QString m_szUserMode; + TQString m_szUserMode; - QString m_szOnConnectCommand; - QString m_szOnLoginCommand; + TQString m_szOnConnectCommand; + TQString m_szOnLoginCommand; public: - const QString & id() const { return m_szId; }; - const QString & nickName() const { return m_szNickName; }; - const QString & altNickName1() const { return m_szAltNickName1; }; - const QString & altNickName2() const { return m_szAltNickName2; }; - const QString & altNickName3() const { return m_szAltNickName3; }; - const QString & userName() const { return m_szUserName; }; - const QString & password() const { return m_szPassword; }; + const TQString & id() const { return m_szId; }; + const TQString & nickName() const { return m_szNickName; }; + const TQString & altNickName1() const { return m_szAltNickName1; }; + const TQString & altNickName2() const { return m_szAltNickName2; }; + const TQString & altNickName3() const { return m_szAltNickName3; }; + const TQString & userName() const { return m_szUserName; }; + const TQString & password() const { return m_szPassword; }; const KviPixmap & avatar() const { return m_pixAvatar; }; - const QString & partMessage() const { return m_szPartMessage; }; - const QString & quitMessage() const { return m_szQuitMessage; }; - const QString & age() const { return m_szAge; }; - const QString & gender() const { return m_szGender; }; - const QString & location() const { return m_szLocation; }; - const QString & languages() const { return m_szLanguages; }; - const QString & otherInfo() const { return m_szOtherInfo; }; - const QString & userMode() const { return m_szUserMode; }; - const QString & onConnectCommand() const { return m_szOnConnectCommand; }; - const QString & onLoginCommand() const { return m_szOnLoginCommand; }; - void setId(const QString &szId){ m_szId = szId; }; - void setNickName(const QString &szNickName){ m_szNickName = szNickName; }; - void setAltNickName1(const QString &szNickName){ m_szAltNickName1 = szNickName; }; - void setAltNickName2(const QString &szNickName){ m_szAltNickName2 = szNickName; }; - void setAltNickName3(const QString &szNickName){ m_szAltNickName3 = szNickName; }; - void setUserName(const QString &szUserName){ m_szUserName = szUserName; }; - void setRealName(const QString &szRealName){ m_szRealName = szRealName; }; - void setPassword(const QString &szPassword){ m_szPassword = szPassword; }; + const TQString & partMessage() const { return m_szPartMessage; }; + const TQString & quitMessage() const { return m_szQuitMessage; }; + const TQString & age() const { return m_szAge; }; + const TQString & gender() const { return m_szGender; }; + const TQString & location() const { return m_szLocation; }; + const TQString & languages() const { return m_szLanguages; }; + const TQString & otherInfo() const { return m_szOtherInfo; }; + const TQString & userMode() const { return m_szUserMode; }; + const TQString & onConnectCommand() const { return m_szOnConnectCommand; }; + const TQString & onLoginCommand() const { return m_szOnLoginCommand; }; + void setId(const TQString &szId){ m_szId = szId; }; + void setNickName(const TQString &szNickName){ m_szNickName = szNickName; }; + void setAltNickName1(const TQString &szNickName){ m_szAltNickName1 = szNickName; }; + void setAltNickName2(const TQString &szNickName){ m_szAltNickName2 = szNickName; }; + void setAltNickName3(const TQString &szNickName){ m_szAltNickName3 = szNickName; }; + void setUserName(const TQString &szUserName){ m_szUserName = szUserName; }; + void setRealName(const TQString &szRealName){ m_szRealName = szRealName; }; + void setPassword(const TQString &szPassword){ m_szPassword = szPassword; }; void setAvatar(const KviPixmap &pix){ m_pixAvatar = pix; }; - void setPartMessage(const QString &szMsg){ m_szPartMessage = szMsg; }; - void setQuitMessage(const QString &szMsg){ m_szQuitMessage = szMsg; }; - void setAge(const QString &szAge){ m_szAge = szAge; }; - void setGender(const QString &szGender){ m_szGender = szGender; }; - void setLocation(const QString &szLocation){ m_szLocation = szLocation; }; - void setLanguages(const QString &szLanguages){ m_szLanguages = szLanguages; }; - void setOtherInfo(const QString &szOtherInfo){ m_szOtherInfo = szOtherInfo; }; - void setUserMode(const QString &szUserMode){ m_szUserMode = szUserMode; }; - void setOnConnectCommand(const QString &szOnConnectCommand){ m_szOnConnectCommand = szOnConnectCommand; }; - void setOnLoginCommand(const QString &szOnLoginCommand){ m_szOnLoginCommand = szOnLoginCommand; }; + void setPartMessage(const TQString &szMsg){ m_szPartMessage = szMsg; }; + void setQuitMessage(const TQString &szMsg){ m_szQuitMessage = szMsg; }; + void setAge(const TQString &szAge){ m_szAge = szAge; }; + void setGender(const TQString &szGender){ m_szGender = szGender; }; + void setLocation(const TQString &szLocation){ m_szLocation = szLocation; }; + void setLanguages(const TQString &szLanguages){ m_szLanguages = szLanguages; }; + void setOtherInfo(const TQString &szOtherInfo){ m_szOtherInfo = szOtherInfo; }; + void setUserMode(const TQString &szUserMode){ m_szUserMode = szUserMode; }; + void setOnConnectCommand(const TQString &szOnConnectCommand){ m_szOnConnectCommand = szOnConnectCommand; }; + void setOnLoginCommand(const TQString &szOnLoginCommand){ m_szOnLoginCommand = szOnLoginCommand; }; protected: void copyFrom(const KviUserIdentity &src); bool save(KviConfig &cfg); @@ -120,26 +120,26 @@ protected: ~KviUserIdentityManager(); protected: static KviUserIdentityManager * m_pInstance; - KviPointerHashTable<QString,KviUserIdentity> * m_pIdentityDict; - QString m_szDefaultIdentity; + KviPointerHashTable<TQString,KviUserIdentity> * m_pIdentityDict; + TQString m_szDefaultIdentity; public: static void init(); static void done(); static KviUserIdentityManager * instance(){ return m_pInstance; }; - KviPointerHashTable<QString,KviUserIdentity> * identityDict(){ return m_pIdentityDict; }; - const KviUserIdentity * findIdentity(const QString &szId){ return m_pIdentityDict->find(szId); }; + KviPointerHashTable<TQString,KviUserIdentity> * identityDict(){ return m_pIdentityDict; }; + const KviUserIdentity * findIdentity(const TQString &szId){ return m_pIdentityDict->tqfind(szId); }; // NEVER NULL const KviUserIdentity * defaultIdentity(); - void setDefaultIdentity(const QString &szIdentityId){ m_szDefaultIdentity = szIdentityId; }; + void setDefaultIdentity(const TQString &szIdentityId){ m_szDefaultIdentity = szIdentityId; }; KviUserIdentityManager * createWorkingCopy(); void copyFrom(KviUserIdentityManager * pWorkingCopy); void releaseWorkingCopy(KviUserIdentityManager * pWorkingCopy); - void save(const QString &szFileName); - void load(const QString &szFileName); + void save(const TQString &szFileName); + void load(const TQString &szFileName); }; #endif //!_KVI_USERIDENTITY_H_ |