summaryrefslogtreecommitdiffstats
path: root/libkmime/tests/test_kmime_codec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/tests/test_kmime_codec.cpp')
-rw-r--r--libkmime/tests/test_kmime_codec.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libkmime/tests/test_kmime_codec.cpp b/libkmime/tests/test_kmime_codec.cpp
index 68ab08ec7..f27bc5b9b 100644
--- a/libkmime/tests/test_kmime_codec.cpp
+++ b/libkmime/tests/test_kmime_codec.cpp
@@ -1,7 +1,7 @@
/* test program for KMime::Codec's:
compile with:
- g++ -I$QTDIR/include -I$KDEDIR/include -L$QTDIR/lib -L$KDEDIR/lib \
- -lqt-mt -lkdecore -lkdenetwork -O2 -pthread -DQT_THREAD_SUPPORT \
+ g++ -I$TQTDIR/include -I$KDEDIR/include -L$TQTDIR/lib -L$KDEDIR/lib \
+ -lqt-mt -lkdecore -lkdenetwork -O2 -pthread -DTQT_THREAD_SUPPORT \
-o test_kmime_codec{,.cpp}
*/
@@ -25,7 +25,7 @@
#include <cassert>
#include <tqfile.h>
-#include <tqcstring.h> // QByteArray
+#include <tqcstring.h> // TQByteArray
using namespace KMime;
using namespace std;
@@ -72,7 +72,7 @@ void missingParameterTo( const char * option ) {
usage();
}
-static enum { Kio = 0, ChunkWise = 1, ConvenienceQBA = 3 }
+static enum { Kio = 0, ChunkWise = 1, ConvenienceTQBA = 3 }
pattern = ChunkWise;
static int outbufsize = 4096;
static int inbufsize = -1; // whole file
@@ -143,7 +143,7 @@ int main( int argc, char * argv[] ) {
else if ( !qstricmp( "chunkwise", optarg ) )
pattern = ChunkWise;
else if ( !qstricmp( "convenience-qba", optarg ) )
- pattern = ConvenienceQBA;
+ pattern = ConvenienceTQBA;
else {
cerr << "Unknown usage pattern \"" << optarg << "\"" << endl;
usage();
@@ -218,7 +218,7 @@ int main( int argc, char * argv[] ) {
case Kio:
encode_decode_kio( encode, codec, infile_buffer, outfile );
break;
- case ConvenienceQBA:
+ case ConvenienceTQBA:
encode_decode_convenience_qba( encode, codec, infile_buffer, outfile );
break;
default:
@@ -371,7 +371,7 @@ void encode_decode_chunkwise( bool encode, const Codec * codec,
//
uint offset = 0;
while ( offset < infile_buffer.size() ) {
- uint reallyRead = QMIN( indata.size(), infile_buffer.size() - offset );
+ uint reallyRead = TQMIN( indata.size(), infile_buffer.size() - offset );
indata.duplicate( infile_buffer.begin() + offset, reallyRead );
offset += reallyRead;