diff options
Diffstat (limited to 'libkdenetwork/qgpgme/eventloopinteractor.cpp')
-rw-r--r-- | libkdenetwork/qgpgme/eventloopinteractor.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdenetwork/qgpgme/eventloopinteractor.cpp b/libkdenetwork/qgpgme/eventloopinteractor.cpp index 40b81664e..9396385b7 100644 --- a/libkdenetwork/qgpgme/eventloopinteractor.cpp +++ b/libkdenetwork/qgpgme/eventloopinteractor.cpp @@ -27,18 +27,18 @@ #include <gpgmepp/context.h> -#include <qsocketnotifier.h> -#include <qapplication.h> +#include <tqsocketnotifier.h> +#include <tqapplication.h> using namespace GpgME; -QGpgME::EventLoopInteractor::EventLoopInteractor( QObject * parent, const char * name ) - : QObject( parent, name ), GpgME::EventLoopInteractor() +QGpgME::EventLoopInteractor::EventLoopInteractor( TQObject * parent, const char * name ) + : TQObject( parent, name ), GpgME::EventLoopInteractor() { if ( !parent ) if ( qApp ) { - connect( qApp, SIGNAL(aboutToQuit()), SLOT(deleteLater()) ); - connect( qApp, SIGNAL(aboutToQuit()), SIGNAL(aboutToDestroy()) ); + connect( qApp, TQT_SIGNAL(aboutToQuit()), TQT_SLOT(deleteLater()) ); + connect( qApp, TQT_SIGNAL(aboutToQuit()), TQT_SIGNAL(aboutToDestroy()) ); } mSelf = this; } @@ -54,7 +54,7 @@ QGpgME::EventLoopInteractor * QGpgME::EventLoopInteractor::instance() { if ( !mSelf ) #ifndef NDEBUG if ( !qApp ) - qWarning( "QGpgME::EventLoopInteractor: Need a QApplication object before calling instance()!" ); + qWarning( "QGpgME::EventLoopInteractor: Need a TQApplication object before calling instance()!" ); else #endif (void)new EventLoopInteractor( 0, "QGpgME::EventLoopInteractor::instance()" ); @@ -62,18 +62,18 @@ QGpgME::EventLoopInteractor * QGpgME::EventLoopInteractor::instance() { } void * QGpgME::EventLoopInteractor::registerWatcher( int fd, Direction dir, bool & ok ) { - QSocketNotifier * sn = new QSocketNotifier( fd, - dir == Read ? QSocketNotifier::Read : QSocketNotifier::Write ); + TQSocketNotifier * sn = new TQSocketNotifier( fd, + dir == Read ? TQSocketNotifier::Read : TQSocketNotifier::Write ); if ( dir == Read ) - connect( sn, SIGNAL(activated(int)), SLOT(slotReadActivity(int)) ); + connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(slotReadActivity(int)) ); else - connect( sn, SIGNAL(activated(int)), SLOT(slotWriteActivity(int)) ); + connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(slotWriteActivity(int)) ); ok = true; // Can above operations fails? return sn; } void QGpgME::EventLoopInteractor::unregisterWatcher( void * tag ) { - delete static_cast<QSocketNotifier*>( tag ); + delete static_cast<TQSocketNotifier*>( tag ); } void QGpgME::EventLoopInteractor::slotWriteActivity( int socket ) { |