summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ircsignalhandler.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/irc/ircsignalhandler.h
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
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
Diffstat (limited to 'kopete/protocols/irc/ircsignalhandler.h')
-rw-r--r--kopete/protocols/irc/ircsignalhandler.h35
1 files changed, 20 insertions, 15 deletions
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<TClass>( m, signal, method );
mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( 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<TClass>( m, signal, method );
mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( 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<TClass>( m, signal, method );
mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( 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<TClass>( m, signal, method );
mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
- new QMemberTriple( mapping, this),
+ new TQMemberTriple( mapping, this),
TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) )
);
}