diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/irc/ircaccount.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/irc/ircaccount.h')
-rw-r--r-- | kopete/protocols/irc/ircaccount.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/kopete/protocols/irc/ircaccount.h b/kopete/protocols/irc/ircaccount.h index e5917360..1aa4072e 100644 --- a/kopete/protocols/irc/ircaccount.h +++ b/kopete/protocols/irc/ircaccount.h @@ -27,8 +27,8 @@ #include <kdialogbase.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> class ChannelListDialog; @@ -53,17 +53,17 @@ class KActionMenu; struct IRCHost { - QString host; + TQString host; uint port; - QString password; + TQString password; bool ssl; }; struct IRCNetwork { - QString name; - QString description; - QValueList<IRCHost*> hosts; + TQString name; + TQString description; + TQValueList<IRCHost*> hosts; }; class IRCAccount @@ -75,11 +75,11 @@ class IRCAccount Q_OBJECT public: - static const QString CONFIG_CODECMIB; - static const QString CONFIG_NETWORKNAME; - static const QString CONFIG_NICKNAME; - static const QString CONFIG_USERNAME; - static const QString CONFIG_REALNAME; + static const TQString CONFIG_CODECMIB; + static const TQString CONFIG_NETWORKNAME; + static const TQString CONFIG_NICKNAME; + static const TQString CONFIG_USERNAME; + static const TQString CONFIG_REALNAME; enum MessageType { @@ -100,69 +100,69 @@ public: Ignore = 5 }; - IRCAccount(IRCProtocol *p, const QString &accountid, const QString &autoConnect = QString::null, - const QString& networkName = QString::null, const QString &nickName = QString::null); + IRCAccount(IRCProtocol *p, const TQString &accountid, const TQString &autoConnect = TQString::null, + const TQString& networkName = TQString::null, const TQString &nickName = TQString::null); virtual ~IRCAccount(); - void setNickName( const QString & ); + void setNickName( const TQString & ); void setAutoShowServerWindow( bool show ); - void setAltNick( const QString & ); - const QString altNick() const; + void setAltNick( const TQString & ); + const TQString altNick() const; - void setUserName( const QString & ); - const QString userName() const; + void setUserName( const TQString & ); + const TQString userName() const; - void setRealName( const QString & ); - const QString realName() const; + void setRealName( const TQString & ); + const TQString realName() const; - const QStringList connectCommands() const; + const TQStringList connectCommands() const; - void setConnectCommands( const QStringList & ) const; + void setConnectCommands( const TQStringList & ) const; - void setDefaultPart( const QString & ); + void setDefaultPart( const TQString & ); - void setNetwork( const QString & ); + void setNetwork( const TQString & ); - void setDefaultQuit( const QString & ); + void setDefaultQuit( const TQString & ); - void setCodec( QTextCodec *codec ); + void setCodec( TQTextCodec *codec ); void setMessageDestinations( int serverNotices, int serverMessages, int informationReplies, int errorMessages ); - QTextCodec *codec() const; + TQTextCodec *codec() const; - const QString defaultPart() const; + const TQString defaultPart() const; - const QString defaultQuit() const; + const TQString defaultQuit() const; - const QString networkName() const; + const TQString networkName() const; - QMap< QString, QString > customCtcp() const; + TQMap< TQString, TQString > customCtcp() const; - void setCustomCtcpReplies( const QMap< QString, QString > &replys ) const; + void setCustomCtcpReplies( const TQMap< TQString, TQString > &replys ) const; - const QMap<QString, QString> customCtcpReplies() const; + const TQMap<TQString, TQString> customCtcpReplies() const; void setCurrentCommandSource( Kopete::ChatSession *session ); Kopete::ChatSession *currentCommandSource(); - IRCContact *getContact(const QString &name, Kopete::MetaContact *metac=0); + IRCContact *getContact(const TQString &name, Kopete::MetaContact *metac=0); IRCContact *getContact(KIRC::EntityPtr entity, Kopete::MetaContact *metac=0); public slots: virtual KActionMenu *actionMenu(); - virtual void setAway( bool isAway, const QString &awayMessage = QString::null ); + virtual void setAway( bool isAway, const TQString &awayMessage = TQString::null ); virtual bool isConnected(); /** Reimplemented from Kopete::Account */ - void setOnlineStatus( const Kopete::OnlineStatus& status , const QString &reason = QString::null); + void setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason = TQString::null); // Returns the KIRC engine instance KIRC::Engine *engine() const { return m_engine; } @@ -178,19 +178,19 @@ public slots: // Returns the Kopete::Contact of the server of the user IRCServerContact *myServer() const; - void successfullyChangedNick(const QString &, const QString &); + void successfullyChangedNick(const TQString &, const TQString &); - virtual void connectWithPassword( const QString & ); + virtual void connectWithPassword( const TQString & ); virtual void disconnect(); - void quit( const QString &quitMessage = QString::null ); + void quit( const TQString &quitMessage = TQString::null ); void listChannels(); - void appendMessage( const QString &message, MessageType type = Default ); + void appendMessage( const TQString &message, MessageType type = Default ); protected: - virtual bool createContact( const QString &contactId, Kopete::MetaContact *parentContact ) ; + virtual bool createContact( const TQString &contactId, Kopete::MetaContact *parentContact ) ; private slots: void engineStatusChanged(KIRC::Engine::Status newStatus); @@ -198,31 +198,31 @@ private slots: void destroyed(IRCContact *contact); void slotFailedServerPassword(); - void slotGoAway( const QString &reason ); - void slotJoinNamedChannel( const QString &channel ); + void slotGoAway( const TQString &reason ); + void slotJoinNamedChannel( const TQString &channel ); void slotJoinChannel(); void slotShowServerWindow(); - void slotNickInUse( const QString &nick ); - void slotNickInUseAlert( const QString &nick ); + void slotNickInUse( const TQString &nick ); + void slotNickInUseAlert( const TQString &nick ); void slotServerBusy(); - void slotNoSuchNickname( const QString &nick ); + void slotNoSuchNickname( const TQString &nick ); void slotSearchChannels(); - void slotNewCtcpReply(const QString &type, const QString &target, const QString &messageReceived); - void slotJoinedUnknownChannel( const QString &channel, const QString &nick ); + void slotNewCtcpReply(const TQString &type, const TQString &target, const TQString &messageReceived); + void slotJoinedUnknownChannel( const TQString &channel, const TQString &nick ); void slotPerformOnConnectCommands(); private: Kopete::ChatSession *m_manager; - QString mNickName; + TQString mNickName; Kopete::AwayAction *mAwayAction; bool triedAltNick; bool autoShowServerWindow; - QString autoConnect; + TQString autoConnect; KIRC::Engine *m_engine; IRCNetwork *m_network; uint currentHost; - QTextCodec *mCodec; + TQTextCodec *mCodec; MessageDestination m_serverNotices; MessageDestination m_serverMessages; @@ -231,11 +231,11 @@ private: ChannelListDialog *m_channelList; - QValueList<IRCContact *> m_contacts; + TQValueList<IRCContact *> m_contacts; IRCContactManager *m_contactManager; IRCServerContact *m_myServer; - QMap< QString, QString > m_customCtcp; + TQMap< TQString, TQString > m_customCtcp; Kopete::ChatSession *commandSource; KAction *m_joinChannelAction; |