diff options
Diffstat (limited to 'kopete/protocols/irc/ircsignalhandler.cpp')
-rw-r--r-- | kopete/protocols/irc/ircsignalhandler.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/kopete/protocols/irc/ircsignalhandler.cpp b/kopete/protocols/irc/ircsignalhandler.cpp index 5bfab0cc..db0acec2 100644 --- a/kopete/protocols/irc/ircsignalhandler.cpp +++ b/kopete/protocols/irc/ircsignalhandler.cpp @@ -23,147 +23,147 @@ #include "kircengine.h" IRCSignalHandler::IRCSignalHandler(IRCContactManager *m) - : QObject(m), + : TQObject(m), manager(m) { KIRC::Engine *m_engine = static_cast<IRCAccount*>( manager->mySelf()->account() )->engine(); //Channel Connections to ourself - QObject::connect(m_engine, SIGNAL(incomingNamesList(const QString &, const QStringList &)), - this, SLOT(slotNamesList(const QString &, const QStringList &))); + TQObject::connect(m_engine, TQT_SIGNAL(incomingNamesList(const TQString &, const TQStringList &)), + this, TQT_SLOT(slotNamesList(const TQString &, const TQStringList &))); - QObject::connect(m_engine, SIGNAL(incomingEndOfNames(const QString &)), - this, SLOT(slotEndOfNames(const QString &))); + TQObject::connect(m_engine, TQT_SIGNAL(incomingEndOfNames(const TQString &)), + this, TQT_SLOT(slotEndOfNames(const TQString &))); - QObject::connect(m_engine, SIGNAL(incomingTopicUser(const QString &, const QString &, const QDateTime &)), - this, SLOT(slotTopicUser(const QString&,const QString&,const QDateTime&))); + TQObject::connect(m_engine, TQT_SIGNAL(incomingTopicUser(const TQString &, const TQString &, const TQDateTime &)), + this, TQT_SLOT(slotTopicUser(const TQString&,const TQString&,const TQDateTime&))); //Channel String mappings - map<IRCChannelContact>( m, SIGNAL(incomingFailedChankey(const QString &)), + map<IRCChannelContact>( m, TQT_SIGNAL(incomingFailedChankey(const TQString &)), &IRCChannelContact::failedChankey ); - map<IRCChannelContact>( m, SIGNAL(incomingFailedChanFull(const QString &)), + map<IRCChannelContact>( m, TQT_SIGNAL(incomingFailedChanFull(const TQString &)), &IRCChannelContact::failedChanInvite ); - map<IRCChannelContact>( m, SIGNAL(incomingFailedChanInvite(const QString &)), + map<IRCChannelContact>( m, TQT_SIGNAL(incomingFailedChanInvite(const TQString &)), &IRCChannelContact::failedChanInvite ); - map<IRCChannelContact>( m, SIGNAL(incomingFailedChanBanned(const QString &)), + map<IRCChannelContact>( m, TQT_SIGNAL(incomingFailedChanBanned(const TQString &)), &IRCChannelContact::failedChanBanned ); - mapSingle<IRCChannelContact>( m, SIGNAL(incomingJoinedChannel(const QString &, const QString &)), + mapSingle<IRCChannelContact>( m, TQT_SIGNAL(incomingJoinedChannel(const TQString &, const TQString &)), &IRCChannelContact::userJoinedChannel ); - mapSingle<IRCChannelContact>( m, SIGNAL(incomingExistingTopic(const QString &, const QString &)), + mapSingle<IRCChannelContact>( m, TQT_SIGNAL(incomingExistingTopic(const TQString &, const TQString &)), &IRCChannelContact::channelTopic ); - mapSingle<IRCChannelContact>( m, SIGNAL(incomingChannelHomePage(const QString &, const QString &)), + mapSingle<IRCChannelContact>( m, TQT_SIGNAL(incomingChannelHomePage(const TQString &, const TQString &)), &IRCChannelContact::channelHomePage ); mapDouble<IRCChannelContact>( m, - SIGNAL(incomingPartedChannel(const QString &, const QString &,const QString &)), + TQT_SIGNAL(incomingPartedChannel(const TQString &, const TQString &,const TQString &)), &IRCChannelContact::userPartedChannel ); mapDouble<IRCChannelContact>( m, - SIGNAL(incomingTopicChange(const QString &, const QString &,const QString &)), + TQT_SIGNAL(incomingTopicChange(const TQString &, const TQString &,const TQString &)), &IRCChannelContact::topicChanged ); mapDouble<IRCChannelContact>( m, - SIGNAL(incomingChannelModeChange(const QString &, const QString &,const QString &)), + TQT_SIGNAL(incomingChannelModeChange(const TQString &, const TQString &,const TQString &)), &IRCChannelContact::incomingModeChange ); mapDouble<IRCChannelContact>( m, - SIGNAL(incomingChannelMode(const QString &, const QString &,const QString &)), + TQT_SIGNAL(incomingChannelMode(const TQString &, const TQString &,const TQString &)), &IRCChannelContact::incomingChannelMode ); mapTriple<IRCChannelContact>( m, - SIGNAL(incomingKick(const QString &, const QString &,const QString &,const QString &)), + TQT_SIGNAL(incomingKick(const TQString &, const TQString &,const TQString &,const TQString &)), &IRCChannelContact::userKicked ); //User connections to ourself - QObject::connect(m_engine, SIGNAL(incomingWhoIsIdle(const QString &, unsigned long )), - this, SLOT(slotNewWhoIsIdle(const QString &, unsigned long ))); + TQObject::connect(m_engine, TQT_SIGNAL(incomingWhoIsIdle(const TQString &, unsigned long )), + this, TQT_SLOT(slotNewWhoIsIdle(const TQString &, unsigned long ))); - QObject::connect(m_engine, SIGNAL(incomingWhoReply(const QString &, const QString &, const QString &, - const QString &, const QString &, bool, const QString &, uint, const QString & )), - this, SLOT( slotNewWhoReply(const QString &, const QString &, const QString &, const QString &, - const QString &, bool, const QString &, uint, const QString &))); + TQObject::connect(m_engine, TQT_SIGNAL(incomingWhoReply(const TQString &, const TQString &, const TQString &, + const TQString &, const TQString &, bool, const TQString &, uint, const TQString & )), + this, TQT_SLOT( slotNewWhoReply(const TQString &, const TQString &, const TQString &, const TQString &, + const TQString &, bool, const TQString &, uint, const TQString &))); //User signal mappings - map<IRCUserContact>( m, SIGNAL(incomingUserOnline( const QString & )), &IRCUserContact::userOnline ); + map<IRCUserContact>( m, TQT_SIGNAL(incomingUserOnline( const TQString & )), &IRCUserContact::userOnline ); - map<IRCUserContact>( m, SIGNAL(incomingWhoIsOperator( const QString & )), &IRCUserContact::newWhoIsOperator ); + map<IRCUserContact>( m, TQT_SIGNAL(incomingWhoIsOperator( const TQString & )), &IRCUserContact::newWhoIsOperator ); - map<IRCUserContact>( m, SIGNAL(incomingWhoIsIdentified( const QString & )), &IRCUserContact::newWhoIsIdentified ); + map<IRCUserContact>( m, TQT_SIGNAL(incomingWhoIsIdentified( const TQString & )), &IRCUserContact::newWhoIsIdentified ); - map<IRCUserContact>( m, SIGNAL(incomingEndOfWhois( const QString & )), &IRCUserContact::whoIsComplete ); + map<IRCUserContact>( m, TQT_SIGNAL(incomingEndOfWhois( const TQString & )), &IRCUserContact::whoIsComplete ); - map<IRCUserContact>( m, SIGNAL(incomingEndOfWhoWas( const QString & )), &IRCUserContact::whoWasComplete ); + map<IRCUserContact>( m, TQT_SIGNAL(incomingEndOfWhoWas( const TQString & )), &IRCUserContact::whoWasComplete ); - mapSingle<IRCUserContact>( m, SIGNAL(incomingUserIsAway( const QString &, const QString & )), + mapSingle<IRCUserContact>( m, TQT_SIGNAL(incomingUserIsAway( const TQString &, const TQString & )), &IRCUserContact::incomingUserIsAway ); - mapSingle<IRCUserContact>( m, SIGNAL(incomingWhoIsChannels( const QString &, const QString & )), + mapSingle<IRCUserContact>( m, TQT_SIGNAL(incomingWhoIsChannels( const TQString &, const TQString & )), &IRCUserContact::newWhoIsChannels ); mapDouble<IRCUserContact>( m, - SIGNAL(incomingWhoIsServer(const QString &, const QString &, const QString &)), + TQT_SIGNAL(incomingWhoIsServer(const TQString &, const TQString &, const TQString &)), &IRCUserContact::newWhoIsServer ); mapDouble<IRCUserContact>( m, - SIGNAL(incomingPrivAction(const QString &, const QString &, const QString &)), + TQT_SIGNAL(incomingPrivAction(const TQString &, const TQString &, const TQString &)), &IRCUserContact::newAction ); mapDouble<IRCChannelContact>( m, - SIGNAL(incomingAction(const QString &, const QString &, const QString &)), + TQT_SIGNAL(incomingAction(const TQString &, const TQString &, const TQString &)), &IRCChannelContact::newAction ); mapTriple<IRCUserContact>( m, - SIGNAL(incomingWhoIsUser(const QString &, const QString &, const QString &, const QString &)), + TQT_SIGNAL(incomingWhoIsUser(const TQString &, const TQString &, const TQString &, const TQString &)), &IRCUserContact::newWhoIsUser ); mapTriple<IRCUserContact>( m, - SIGNAL(incomingWhoWasUser(const QString &, const QString &, const QString &, const QString &)), + TQT_SIGNAL(incomingWhoWasUser(const TQString &, const TQString &, const TQString &, const TQString &)), &IRCUserContact::newWhoIsUser ); } IRCSignalHandler::~IRCSignalHandler() { //Delete our mapping pointers - for( QValueList<IRCSignalMappingBase*>::iterator it = mappings.begin(); it != mappings.end(); ++it ) + for( TQValueList<IRCSignalMappingBase*>::iterator it = mappings.begin(); it != mappings.end(); ++it ) delete *it; } -void IRCSignalHandler::slotNamesList( const QString &chan, const QStringList &list ) +void IRCSignalHandler::slotNamesList( const TQString &chan, const TQStringList &list ) { IRCChannelContact *c = manager->existChannel( chan ); if( c ) c->namesList( list ); } -void IRCSignalHandler::slotEndOfNames( const QString &chan ) +void IRCSignalHandler::slotEndOfNames( const TQString &chan ) { IRCChannelContact *c = manager->existChannel( chan ); if ( c ) c->endOfNames(); } -void IRCSignalHandler::slotTopicUser(const QString &chan, const QString &user,const QDateTime &time) +void IRCSignalHandler::slotTopicUser(const TQString &chan, const TQString &user,const TQDateTime &time) { IRCChannelContact *c = manager->existChannel( chan ); if( c ) c->topicUser( user, time ); } -void IRCSignalHandler::slotNewWhoIsIdle(const QString &nick, unsigned long val ) +void IRCSignalHandler::slotNewWhoIsIdle(const TQString &nick, unsigned long val ) { IRCUserContact *c = manager->findUser( nick ); if( c ) c->newWhoIsIdle( val ); } -void IRCSignalHandler::slotNewWhoReply(const QString &nick, const QString &arg1, const QString &arg2, - const QString &arg3, const QString &arg4, bool arg5, const QString &arg6, uint arg7, const QString &arg8 ) +void IRCSignalHandler::slotNewWhoReply(const TQString &nick, const TQString &arg1, const TQString &arg2, + const TQString &arg3, const TQString &arg4, bool arg5, const TQString &arg6, uint arg7, const TQString &arg8 ) { IRCUserContact *c = manager->findUser( nick ); if( c ) |