summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/tests/test_verify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/tests/test_verify.cpp')
-rw-r--r--certmanager/lib/tests/test_verify.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/certmanager/lib/tests/test_verify.cpp b/certmanager/lib/tests/test_verify.cpp
index a81e50466..54a88b4c2 100644
--- a/certmanager/lib/tests/test_verify.cpp
+++ b/certmanager/lib/tests/test_verify.cpp
@@ -41,8 +41,8 @@
#include <kapplication.h>
#include <kcmdlineargs.h>
-#include <qdir.h>
-#include <qfile.h>
+#include <tqdir.h>
+#include <tqfile.h>
#include <assert.h>
@@ -50,18 +50,18 @@ int main( int argc, char **argv )
{
setenv("GNUPGHOME", KDESRCDIR "/gnupg_home", 1 );
setenv("LC_ALL", "C", 1);
- setenv("KDEHOME", QFile::encodeName( QDir::homeDirPath() + "/.kde-unit-test" ), 1);
+ setenv("KDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.kde-unit-test" ), 1);
KAboutData aboutData( "test_verify", "verify job test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KApplication app( false, false );
- const QString sigFileName = KDESRCDIR "/test.data.sig";
- const QString dataFileName = KDESRCDIR "/test.data";
+ const TQString sigFileName = KDESRCDIR "/test.data.sig";
+ const TQString dataFileName = KDESRCDIR "/test.data";
- QFile sigFile( sigFileName );
+ TQFile sigFile( sigFileName );
assert( sigFile.open( IO_ReadOnly ) );
- QFile dataFile( dataFileName );
+ TQFile dataFile( dataFileName );
assert( dataFile.open( IO_ReadOnly ) );
const Kleo::CryptoBackend::Protocol * const backend = Kleo::CryptoBackendFactory::instance()->protocol( "openpgp" );
@@ -76,10 +76,10 @@ int main( int argc, char **argv )
assert( sig.creationTime() == 1189650248L );
assert( sig.validity() == GpgME::Signature::Full );
- const QString opaqueFileName = KDESRCDIR "/test.data.gpg";
- QFile opaqueFile( opaqueFileName );
+ const TQString opaqueFileName = KDESRCDIR "/test.data.gpg";
+ TQFile opaqueFile( opaqueFileName );
assert( opaqueFile.open( IO_ReadOnly ) );
- QByteArray clearText;
+ TQByteArray clearText;
Kleo::VerifyOpaqueJob *job2 = backend->verifyOpaqueJob();
result = job2->exec( opaqueFile.readAll(), clearText );