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