summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ircsignalhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc/ircsignalhandler.h')
-rw-r--r--kopete/protocols/irc/ircsignalhandler.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/kopete/protocols/irc/ircsignalhandler.h b/kopete/protocols/irc/ircsignalhandler.h
index a87f814c..57732e07 100644
--- a/kopete/protocols/irc/ircsignalhandler.h
+++ b/kopete/protocols/irc/ircsignalhandler.h
@@ -19,9 +19,9 @@
#ifndef _IRC_SIGNAL_HANDLER_H
#define _IRC_SIGNAL_HANDLER_H
-#include <qobject.h>
-#include <qstringlist.h>
-#include <qdatetime.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
+#include <tqdatetime.h>
#include <kdebug.h>
@@ -54,30 +54,30 @@ struct IRCSignalMappingBase{};
struct IRCSignalMappingT : IRCSignalMappingBase
{
- virtual void exec( const QString & ) = 0;
+ virtual void exec( const TQString & ) = 0;
virtual ~IRCSignalMappingT() {};
};
struct IRCSignalMappingSingleT : IRCSignalMappingBase
{
- virtual void exec( const QString &, const QString & ) = 0;
+ virtual void exec( const TQString &, const TQString & ) = 0;
virtual ~IRCSignalMappingSingleT() {};
};
struct IRCSignalMappingDoubleT : IRCSignalMappingBase
{
- virtual void exec( const QString &, const QString &, const QString & ) = 0;
+ virtual void exec( const TQString &, const TQString &, const TQString & ) = 0;
virtual ~IRCSignalMappingDoubleT() {};
};
struct IRCSignalMappingTripleT : IRCSignalMappingBase
{
- virtual void exec( const QString &, const QString &, const QString &, const QString & ) = 0;
+ virtual void exec( const TQString &, const TQString &, const TQString &, const TQString & ) = 0;
virtual ~IRCSignalMappingTripleT() {};
};
/***
-QObject members, these connect to the KIRC signals and call
+TQObject members, these connect to the KIRC signals and call
the Mapping functions when they emit.
**/
@@ -86,10 +86,10 @@ class QMember : public QObject
Q_OBJECT
public:
- QMember( IRCSignalMappingT *m, QObject *p ) : QObject( p ), mapping( m ){};
+ QMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){};
public slots:
- void slotEmit( const QString &id )
+ void slotEmit( const TQString &id )
{
//kdDebug(14120) << k_funcinfo << id << endl;
mapping->exec(id);
@@ -104,10 +104,10 @@ class QMemberSingle : public QObject
Q_OBJECT
public:
- QMemberSingle( IRCSignalMappingSingleT *m, QObject *p ) : QObject( p ), mapping( m ){}
+ QMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots:
- void slotEmit( const QString &id, const QString &arg )
+ void slotEmit( const TQString &id, const TQString &arg )
{
//kdDebug(14120) << k_funcinfo << id << " : " << arg << endl;
mapping->exec(id,arg);
@@ -122,10 +122,10 @@ class QMemberDouble : public QObject
Q_OBJECT
public:
- QMemberDouble( IRCSignalMappingDoubleT *m, QObject *p ) : QObject( p ), mapping( m ){}
+ QMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots:
- void slotEmit( const QString &id, const QString &arg, const QString &arg2 )
+ void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2 )
{
//kdDebug(14120) << k_funcinfo << id << " : " << arg << " : " << arg2 << endl;
mapping->exec(id,arg,arg2);
@@ -140,10 +140,10 @@ class QMemberTriple : public QObject
Q_OBJECT
public:
- QMemberTriple( IRCSignalMappingTripleT *m, QObject *p ) : QObject( p ), mapping( m ){}
+ QMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots:
- void slotEmit( const QString &id, const QString &arg, const QString &arg2, const QString &arg3 )
+ void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2, const TQString &arg3 )
{
//kdDebug(14120) << k_funcinfo << id << " : " << arg << " : " << arg2 << " : " << arg3 << endl;
mapping->exec(id,arg,arg2,arg3);
@@ -166,7 +166,7 @@ class IRCSignalMapping : public IRCSignalMappingT
IRCSignalMapping( IRCContactManager *mgr, const char * /*signal*/,
void (TClass::*m)() ) : manager(mgr), method(m){}
- void exec( const QString &id )
+ void exec( const TQString &id )
{
TClass *c = (TClass*)manager->findContact( id );
if( c )
@@ -186,21 +186,21 @@ class IRCSignalMappingSingle : public IRCSignalMappingSingleT
{
public:
IRCSignalMappingSingle<TClass>( IRCContactManager *mgr, const char * /*signal*/,
- void (TClass::*m)(const QString&) ) : manager(mgr), method(m){}
+ void (TClass::*m)(const TQString&) ) : manager(mgr), method(m){}
- void exec( const QString &id, const QString &arg )
+ void exec( const TQString &id, const TQString &arg )
{
TClass *c = (TClass*)manager->findContact( id );
if( c )
{
- void (TClass::*tmp)(const QString&) = (void (TClass::*)(const QString&))method;
+ void (TClass::*tmp)(const TQString&) = (void (TClass::*)(const TQString&))method;
(*c.*tmp)( arg );
}
}
private:
IRCContactManager *manager;
- void (TClass::*method)(const QString &);
+ void (TClass::*method)(const TQString &);
};
template <class TClass>
@@ -208,22 +208,22 @@ class IRCSignalMappingDouble : public IRCSignalMappingDoubleT
{
public:
IRCSignalMappingDouble<TClass>( IRCContactManager *mgr, const char * /*signal*/,
- void (TClass::*m)(const QString&,const QString&) ) : manager(mgr), method(m){}
+ void (TClass::*m)(const TQString&,const TQString&) ) : manager(mgr), method(m){}
- void exec( const QString &id,const QString &arg, const QString &arg2 )
+ void exec( const TQString &id,const TQString &arg, const TQString &arg2 )
{
TClass *c = (TClass*)manager->findContact( id );
if( c )
{
- void (TClass::*tmp)(const QString&,const QString&) =
- (void (TClass::*)(const QString&,const QString&))method;
+ void (TClass::*tmp)(const TQString&,const TQString&) =
+ (void (TClass::*)(const TQString&,const TQString&))method;
(*c.*tmp)(arg,arg2);
}
}
private:
IRCContactManager *manager;
- void (TClass::*method)(const QString &,const QString &);
+ void (TClass::*method)(const TQString &,const TQString &);
};
template <class TClass>
@@ -231,23 +231,23 @@ class IRCSignalMappingTriple : public IRCSignalMappingTripleT
{
public:
IRCSignalMappingTriple<TClass>( IRCContactManager *mgr, const char * /*signal*/,
- void (TClass::*m)(const QString&,const QString&,const QString&) )
+ void (TClass::*m)(const TQString&,const TQString&,const TQString&) )
: manager(mgr), method(m){}
- void exec( const QString &id,const QString&arg, const QString &arg2, const QString &arg3 )
+ void exec( const TQString &id,const TQString&arg, const TQString &arg2, const TQString &arg3 )
{
TClass *c = (TClass*)manager->findContact( id );
if( c )
{
- void (TClass::*tmp)(const QString&,const QString&,const QString&) =
- (void (TClass::*)(const QString&,const QString&,const QString&))method;
+ void (TClass::*tmp)(const TQString&,const TQString&,const TQString&) =
+ (void (TClass::*)(const TQString&,const TQString&,const TQString&))method;
(*c.*tmp)(arg,arg2,arg3);
}
}
private:
IRCContactManager *manager;
- void (TClass::*method)(const QString &,const QString &,const QString &);
+ void (TClass::*method)(const TQString &,const TQString &,const TQString &);
};
class IRCSignalHandler : public QObject
@@ -261,22 +261,22 @@ class IRCSignalHandler : public QObject
private slots:
/****
- Slots for signals with non-QString types
+ Slots for signals with non-TQString types
*/
//Channel contact slots
- void slotNamesList( const QString &, const QStringList & );
- void slotEndOfNames( const QString & );
- void slotTopicUser( const QString &, const QString&, const QDateTime &);
+ void slotNamesList( const TQString &, const TQStringList & );
+ void slotEndOfNames( const TQString & );
+ void slotTopicUser( const TQString &, const TQString&, const TQDateTime &);
//User contact slots
- void slotNewWhoIsIdle(const QString &, unsigned long );
- void slotNewWhoReply(const QString &, const QString &, const QString &, const QString &,
- const QString &, bool , const QString &, uint , const QString & );
+ void slotNewWhoIsIdle(const TQString &, unsigned long );
+ void slotNewWhoReply(const TQString &, const TQString &, const TQString &, const TQString &,
+ const TQString &, bool , const TQString &, uint , const TQString & );
private:
IRCContactManager *manager;
- QValueList<IRCSignalMappingBase*> mappings;
+ TQValueList<IRCSignalMappingBase*> mappings;
/****
Signal mapping functions
@@ -287,46 +287,46 @@ class IRCSignalHandler : public QObject
{
IRCSignalMappingT *mapping = new IRCSignalMapping<TClass>( m, signal, method );
mappings.append(mapping);
- QObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
+ TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new QMember( mapping, this),
- SLOT( slotEmit( const QString &) )
+ TQT_SLOT( slotEmit( const TQString &) )
);
}
template <class TClass>
inline void mapSingle( IRCContactManager *m,
- const char* signal, void (TClass::*method)(const QString&) )
+ const char* signal, void (TClass::*method)(const TQString&) )
{
IRCSignalMappingSingleT *mapping = new IRCSignalMappingSingle<TClass>( m, signal, method );
mappings.append(mapping);
- QObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
+ TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new QMemberSingle( mapping, this),
- SLOT( slotEmit( const QString &, const QString &) )
+ TQT_SLOT( slotEmit( const TQString &, const TQString &) )
);
}
template <class TClass>
inline void mapDouble( IRCContactManager *m,
- const char* signal, void (TClass::*method)(const QString&,const QString&) )
+ const char* signal, void (TClass::*method)(const TQString&,const TQString&) )
{
IRCSignalMappingDoubleT *mapping = new IRCSignalMappingDouble<TClass>( m, signal, method );
mappings.append(mapping);
- QObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
+ TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new QMemberDouble( mapping, this),
- SLOT( slotEmit( const QString &, const QString &,const QString &) )
+ TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &) )
);
}
template <class TClass>
inline void mapTriple( IRCContactManager *m,
const char* signal,
- void (TClass::*method)(const QString&,const QString &, const QString &) )
+ void (TClass::*method)(const TQString&,const TQString &, const TQString &) )
{
IRCSignalMappingTripleT *mapping = new IRCSignalMappingTriple<TClass>( m, signal, method );
mappings.append(mapping);
- QObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
+ TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new QMemberTriple( mapping, this),
- SLOT( slotEmit( const QString &, const QString &,const QString &,const QString &) )
+ TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) )
);
}
};