|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
* up the contact it is for, and call the function passed into the class by the
|
|
|
|
|
* mapping function.
|
|
|
|
|
*
|
|
|
|
|
* Since TQObjects cannot be inside templates, the TQMember classes that connect
|
|
|
|
|
* Since TQObjects cannot be inside templates, the QMember classes that connect
|
|
|
|
|
* to the slots are seperate.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -81,13 +81,13 @@ TQObject members, these connect to the KIRC signals and call
|
|
|
|
|
the Mapping functions when they emit.
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
class TQMember : public TQObject
|
|
|
|
|
class QMember : public TQObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TQMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){};
|
|
|
|
|
QMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){};
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void slotEmit( const TQString &id )
|
|
|
|
@ -100,13 +100,13 @@ class TQMember : public TQObject
|
|
|
|
|
IRCSignalMappingT *mapping;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TQMemberSingle : public TQObject
|
|
|
|
|
class QMemberSingle : public TQObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TQMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
QMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void slotEmit( const TQString &id, const TQString &arg )
|
|
|
|
@ -119,13 +119,13 @@ class TQMemberSingle : public TQObject
|
|
|
|
|
IRCSignalMappingSingleT *mapping;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TQMemberDouble : public TQObject
|
|
|
|
|
class QMemberDouble : public TQObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TQMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
QMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2 )
|
|
|
|
@ -138,13 +138,13 @@ class TQMemberDouble : public TQObject
|
|
|
|
|
IRCSignalMappingDoubleT *mapping;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TQMemberTriple : public TQObject
|
|
|
|
|
class QMemberTriple : public TQObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TQMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
QMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2, const TQString &arg3 )
|
|
|
|
@ -293,7 +293,7 @@ class IRCSignalHandler : public TQObject
|
|
|
|
|
IRCSignalMappingT *mapping = new IRCSignalMapping<TClass>( m, signal, method );
|
|
|
|
|
mappings.append(mapping);
|
|
|
|
|
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
|
|
|
|
|
new TQMember( mapping, this),
|
|
|
|
|
new QMember( mapping, this),
|
|
|
|
|
TQT_SLOT( slotEmit( const TQString &) )
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -305,7 +305,7 @@ class IRCSignalHandler : public TQObject
|
|
|
|
|
IRCSignalMappingSingleT *mapping = new IRCSignalMappingSingle<TClass>( m, signal, method );
|
|
|
|
|
mappings.append(mapping);
|
|
|
|
|
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
|
|
|
|
|
new TQMemberSingle( mapping, this),
|
|
|
|
|
new QMemberSingle( mapping, this),
|
|
|
|
|
TQT_SLOT( slotEmit( const TQString &, const TQString &) )
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -317,7 +317,7 @@ class IRCSignalHandler : public TQObject
|
|
|
|
|
IRCSignalMappingDoubleT *mapping = new IRCSignalMappingDouble<TClass>( m, signal, method );
|
|
|
|
|
mappings.append(mapping);
|
|
|
|
|
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
|
|
|
|
|
new TQMemberDouble( mapping, this),
|
|
|
|
|
new QMemberDouble( mapping, this),
|
|
|
|
|
TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &) )
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -330,7 +330,7 @@ class IRCSignalHandler : public TQObject
|
|
|
|
|
IRCSignalMappingTripleT *mapping = new IRCSignalMappingTriple<TClass>( m, signal, method );
|
|
|
|
|
mappings.append(mapping);
|
|
|
|
|
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
|
|
|
|
|
new TQMemberTriple( mapping, this),
|
|
|
|
|
new QMemberTriple( mapping, this),
|
|
|
|
|
TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) )
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|