From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/irc/ircsignalhandler.h | 35 +++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'kopete/protocols/irc/ircsignalhandler.h') diff --git a/kopete/protocols/irc/ircsignalhandler.h b/kopete/protocols/irc/ircsignalhandler.h index 57732e07..2571a897 100644 --- a/kopete/protocols/irc/ircsignalhandler.h +++ b/kopete/protocols/irc/ircsignalhandler.h @@ -45,11 +45,11 @@ * up the contact it is for, and call the function passed into the class by the * mapping function. * -* Since QObjects cannot be inside templates, the QMember classes that connect +* Since TQObjects cannot be inside templates, the TQMember classes that connect * to the slots are seperate. */ -/*** Pre-declare mapping types for the QObjects **/ +/*** Pre-declare mapping types for the TQObjects **/ struct IRCSignalMappingBase{}; struct IRCSignalMappingT : IRCSignalMappingBase @@ -81,12 +81,13 @@ TQObject members, these connect to the KIRC signals and call the Mapping functions when they emit. **/ -class QMember : public QObject +class TQMember : public TQObject { Q_OBJECT + TQ_OBJECT public: - QMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){}; + TQMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){}; public slots: void slotEmit( const TQString &id ) @@ -99,12 +100,13 @@ class QMember : public QObject IRCSignalMappingT *mapping; }; -class QMemberSingle : public QObject +class TQMemberSingle : public TQObject { Q_OBJECT + TQ_OBJECT public: - QMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} + TQMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} public slots: void slotEmit( const TQString &id, const TQString &arg ) @@ -117,12 +119,13 @@ class QMemberSingle : public QObject IRCSignalMappingSingleT *mapping; }; -class QMemberDouble : public QObject +class TQMemberDouble : public TQObject { Q_OBJECT + TQ_OBJECT public: - QMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} + TQMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} public slots: void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2 ) @@ -135,12 +138,13 @@ class QMemberDouble : public QObject IRCSignalMappingDoubleT *mapping; }; -class QMemberTriple : public QObject +class TQMemberTriple : public TQObject { Q_OBJECT + TQ_OBJECT public: - QMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} + TQMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} public slots: void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2, const TQString &arg3 ) @@ -250,9 +254,10 @@ class IRCSignalMappingTriple : public IRCSignalMappingTripleT void (TClass::*method)(const TQString &,const TQString &,const TQString &); }; -class IRCSignalHandler : public QObject +class IRCSignalHandler : public TQObject { Q_OBJECT + TQ_OBJECT public: IRCSignalHandler( IRCContactManager *manager ); @@ -288,7 +293,7 @@ class IRCSignalHandler : public QObject IRCSignalMappingT *mapping = new IRCSignalMapping( m, signal, method ); mappings.append(mapping); TQObject::connect( static_cast( m->mySelf()->account() )->engine(), signal, - new QMember( mapping, this), + new TQMember( mapping, this), TQT_SLOT( slotEmit( const TQString &) ) ); } @@ -300,7 +305,7 @@ class IRCSignalHandler : public QObject IRCSignalMappingSingleT *mapping = new IRCSignalMappingSingle( m, signal, method ); mappings.append(mapping); TQObject::connect( static_cast( m->mySelf()->account() )->engine(), signal, - new QMemberSingle( mapping, this), + new TQMemberSingle( mapping, this), TQT_SLOT( slotEmit( const TQString &, const TQString &) ) ); } @@ -312,7 +317,7 @@ class IRCSignalHandler : public QObject IRCSignalMappingDoubleT *mapping = new IRCSignalMappingDouble( m, signal, method ); mappings.append(mapping); TQObject::connect( static_cast( m->mySelf()->account() )->engine(), signal, - new QMemberDouble( mapping, this), + new TQMemberDouble( mapping, this), TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &) ) ); } @@ -325,7 +330,7 @@ class IRCSignalHandler : public QObject IRCSignalMappingTripleT *mapping = new IRCSignalMappingTriple( m, signal, method ); mappings.append(mapping); TQObject::connect( static_cast( m->mySelf()->account() )->engine(), signal, - new QMemberTriple( mapping, this), + new TQMemberTriple( mapping, this), TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) ) ); } -- cgit v1.2.3