summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 '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 a9de8d658..4a79a1956 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 );
}