diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkdenetwork/qgpgme/eventloopinteractor.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) { |