diff options
Diffstat (limited to 'libtdenetwork/qgpgme')
| -rw-r--r-- | libtdenetwork/qgpgme/Makefile.am | 2 | ||||
| -rw-r--r-- | libtdenetwork/qgpgme/dataprovider.h | 4 | ||||
| -rw-r--r-- | libtdenetwork/qgpgme/eventloopinteractor.cpp | 12 | ||||
| -rw-r--r-- | libtdenetwork/qgpgme/eventloopinteractor.h | 10 | ||||
| -rw-r--r-- | libtdenetwork/qgpgme/tests/Makefile.am | 2 |
5 files changed, 11 insertions, 19 deletions
diff --git a/libtdenetwork/qgpgme/Makefile.am b/libtdenetwork/qgpgme/Makefile.am index 108760a0..6f1964a5 100644 --- a/libtdenetwork/qgpgme/Makefile.am +++ b/libtdenetwork/qgpgme/Makefile.am @@ -9,7 +9,7 @@ qgpgme_HEADERS = eventloopinteractor.h dataprovider.h libqgpgme_la_SOURCES = eventloopinteractor.cpp dataprovider.cpp libqgpgme_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -libqgpgme_la_LIBADD = $(LIB_QT) ../gpgmepp/libgpgme++.la +libqgpgme_la_LIBADD = $(LIB_TQT) ../gpgmepp/libgpgme++.la METASOURCES = AUTO diff --git a/libtdenetwork/qgpgme/dataprovider.h b/libtdenetwork/qgpgme/dataprovider.h index e3613a25..235998f7 100644 --- a/libtdenetwork/qgpgme/dataprovider.h +++ b/libtdenetwork/qgpgme/dataprovider.h @@ -22,11 +22,11 @@ #include <gpgmepp/interfaces/dataprovider.h> #include <tqcstring.h> -#include <kdemacros.h> +#include <tdemacros.h> namespace QGpgME { - class KDE_EXPORT TQByteArrayDataProvider : public GpgME::DataProvider { + class TDE_EXPORT TQByteArrayDataProvider : public GpgME::DataProvider { public: TQByteArrayDataProvider(); TQByteArrayDataProvider( const TQByteArray & initialData ); diff --git a/libtdenetwork/qgpgme/eventloopinteractor.cpp b/libtdenetwork/qgpgme/eventloopinteractor.cpp index 3e75bf89..c9a4764a 100644 --- a/libtdenetwork/qgpgme/eventloopinteractor.cpp +++ b/libtdenetwork/qgpgme/eventloopinteractor.cpp @@ -39,8 +39,8 @@ QGpgME::EventLoopInteractor::EventLoopInteractor( TQObject * parent, const char { if ( !parent ) if ( tqApp ) { - connect( tqApp, TQT_SIGNAL(aboutToQuit()), TQT_SLOT(deleteLater()) ); - connect( tqApp, TQT_SIGNAL(aboutToQuit()), TQT_SIGNAL(aboutToDestroy()) ); + connect( tqApp, TQ_SIGNAL(aboutToQuit()), TQ_SLOT(deleteLater()) ); + connect( tqApp, TQ_SIGNAL(aboutToQuit()), TQ_SIGNAL(aboutToDestroy()) ); } mSelf = this; } @@ -67,9 +67,9 @@ void * QGpgME::EventLoopInteractor::registerWatcher( int fd, Direction dir, bool TQSocketNotifier * sn = new TQSocketNotifier( fd, dir == Read ? TQSocketNotifier::Read : TQSocketNotifier::Write ); if ( dir == Read ) - connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(slotReadActivity(int)) ); + connect( sn, TQ_SIGNAL(activated(int)), TQ_SLOT(slotReadActivity(int)) ); else - connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(slotWriteActivity(int)) ); + connect( sn, TQ_SIGNAL(activated(int)), TQ_SLOT(slotWriteActivity(int)) ); ok = true; // Can above operations fails? return sn; } @@ -96,10 +96,6 @@ void QGpgME::EventLoopInteractor::slotReadActivity( int socket ) { readActivity.remove(socket); } -void QGpgME::EventLoopInteractor::nextTrustItemEvent( GpgME::Context * context, const GpgME::TrustItem & item ) { - emit nextTrustItemEventSignal( context, item ); -} - void QGpgME::EventLoopInteractor::nextKeyEvent( GpgME::Context * context, const GpgME::Key & key ) { emit nextKeyEventSignal( context, key ); } diff --git a/libtdenetwork/qgpgme/eventloopinteractor.h b/libtdenetwork/qgpgme/eventloopinteractor.h index 9c75fcb0..b28d1f30 100644 --- a/libtdenetwork/qgpgme/eventloopinteractor.h +++ b/libtdenetwork/qgpgme/eventloopinteractor.h @@ -22,19 +22,18 @@ #include <gpgmepp/eventloopinteractor.h> #include <tqobject.h> -#include <kdemacros.h> +#include <tdemacros.h> namespace GpgME { class Context; class Error; - class TrustItem; class Key; } // namespace GpgME namespace QGpgME { - class KDE_EXPORT EventLoopInteractor : public TQObject, public GpgME::EventLoopInteractor { - Q_OBJECT + class TDE_EXPORT EventLoopInteractor : public TQObject, public GpgME::EventLoopInteractor { + TQ_OBJECT protected: EventLoopInteractor( TQObject * parent, const char * name=0 ); @@ -44,7 +43,6 @@ namespace QGpgME { static EventLoopInteractor * instance(); signals: - void nextTrustItemEventSignal( GpgME::Context * context, const GpgME::TrustItem & item ); void nextKeyEventSignal( GpgME::Context * context, const GpgME::Key & key ); void operationDoneEventSignal( GpgME::Context * context, const GpgME::Error & e ); @@ -69,8 +67,6 @@ namespace QGpgME { // /*! \reimp */ - void nextTrustItemEvent( GpgME::Context * context, const GpgME::TrustItem & item ); - /*! \reimp */ void nextKeyEvent( GpgME::Context * context, const GpgME::Key & key ); /*! \reimp */ void operationDoneEvent( GpgME::Context * context, const GpgME::Error & e ); diff --git a/libtdenetwork/qgpgme/tests/Makefile.am b/libtdenetwork/qgpgme/tests/Makefile.am index 5c2436d0..3d53c083 100644 --- a/libtdenetwork/qgpgme/tests/Makefile.am +++ b/libtdenetwork/qgpgme/tests/Makefile.am @@ -6,4 +6,4 @@ TESTS = $(check_PROGRAMS) dataprovidertest_SOURCES = dataprovidertest.cpp -LDADD = ../libqgpgme.la #?$(LIB_QT) +LDADD = ../libqgpgme.la #?$(LIB_TQT) |
