summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends/chiasmus/obtainkeysjob.cpp')
-rw-r--r--certmanager/lib/backends/chiasmus/obtainkeysjob.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp b/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
index a9de8d65..4a79a195 100644
--- a/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
+++ b/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
@@ -44,11 +44,11 @@
#include <kmessagebox.h>
#include <kshell.h>
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qvariant.h>
-#include <qtimer.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqvariant.h>
+#include <tqtimer.h>
+#include <tqfileinfo.h>
#include <gpg-error.h>
@@ -64,13 +64,13 @@ Kleo::ObtainKeysJob::ObtainKeysJob()
const CryptoConfigEntry * keypaths =
ChiasmusBackend::instance()->config()->entry( "Chiasmus", "General", "keydir" );
assert( keypaths );
- mKeyPaths = QStringList( keypaths->urlValue().path() );
+ mKeyPaths = TQStringList( keypaths->urlValue().path() );
}
Kleo::ObtainKeysJob::~ObtainKeysJob() {}
GpgME::Error Kleo::ObtainKeysJob::start() {
- QTimer::singleShot( 0, this, SLOT(slotPerform()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotPerform()) );
return mError = 0;
}
@@ -92,16 +92,16 @@ void Kleo::ObtainKeysJob::slotPerform( bool async ) {
mError = gpg_error( GPG_ERR_CANCELED );
if ( mIndex >= mKeyPaths.size() || mError ) {
emit done();
- emit SpecialJob::result( mError, QVariant( mResult ) );
+ emit SpecialJob::result( mError, TQVariant( mResult ) );
return;
}
emit progress( i18n( "Scanning directory %1..." ).arg( mKeyPaths[mIndex] ),
mIndex, mKeyPaths.size() );
- const QDir dir( KShell::tildeExpand( mKeyPaths[mIndex] ) );
+ const TQDir dir( KShell::tildeExpand( mKeyPaths[mIndex] ) );
- if ( const QFileInfoList * xisFiles = dir.entryInfoList( "*.xis;*.XIS", QDir::Files ) )
+ if ( const QFileInfoList * xisFiles = dir.entryInfoList( "*.xis;*.XIS", TQDir::Files ) )
for ( QFileInfoList::const_iterator it = xisFiles->begin(), end = xisFiles->end() ; it != end ; ++it )
if ( (*it)->isReadable() )
mResult.push_back( (*it)->absFilePath() );
@@ -109,17 +109,17 @@ void Kleo::ObtainKeysJob::slotPerform( bool async ) {
++mIndex;
if ( async )
- QTimer::singleShot( 0, this, SLOT(slotPerform()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotPerform()) );
else
slotPerform( false );
}
-void Kleo::ObtainKeysJob::showErrorDialog( QWidget * parent, const QString & caption ) const {
+void Kleo::ObtainKeysJob::showErrorDialog( TQWidget * parent, const TQString & caption ) const {
if ( !mError )
return;
if ( mError.isCanceled() )
return;
- const QString msg = QString::fromUtf8( mError.asString() );
+ const TQString msg = TQString::fromUtf8( mError.asString() );
KMessageBox::error( parent, msg, caption );
}