summaryrefslogtreecommitdiffstats
path: root/libkmime/tests/test_kmime_codec.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkmime/tests/test_kmime_codec.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;