From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpilot/lib/pilot.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kpilot/lib/pilot.h') diff --git a/kpilot/lib/pilot.h b/kpilot/lib/pilot.h index d4fec82b2..3ac2918bd 100644 --- a/kpilot/lib/pilot.h +++ b/kpilot/lib/pilot.h @@ -35,9 +35,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include "pilotLinkVersion.h" @@ -77,38 +77,38 @@ namespace Pilot /** Maximum size (in bytes) of a record's data */ static const int MAX_RECORD_SIZE = 65535; - typedef QValueList RecordIDList; + typedef TQValueList RecordIDList; /** Static translation function that maps handheld native (8 bit, * usually latin1 but sometimes someting else) encoded data to * a Unicode string. Converts the @p len characters in @p c * to a Unicode string. */ - QString fromPilot( const char *c, int len ); + TQString fromPilot( const char *c, int len ); /** Static translation function mapping a NUL-terminated * string from the handheld's encoding to UTF-8. * @param c the NUL-terminated string to decode - * @return QString (UTF-8) value of @p c + * @return TQString (UTF-8) value of @p c * @note NUL-terminated strings are rare on the handheld. */ - QString fromPilot( const char *c ); + TQString fromPilot( const char *c ); - /** Static translation function that maps a QString onto the + /** Static translation function that maps a TQString onto the * native 8 bit encoding of the handheld. Writes the result into * the buffer @p buf which has size @p len. Returns the length * of the result. Zero-fills the buffer as needed. */ - int toPilot( const QString &s, char *buf, int len); - int toPilot( const QString &s, unsigned char *buf, int len); + int toPilot( const TQString &s, char *buf, int len); + int toPilot( const TQString &s, unsigned char *buf, int len); - /** Static translation function that maps a QString onto the + /** Static translation function that maps a TQString onto the * native 8 bit encoding of the handheld. * * @param s String to encode * @return Encoded string in a QCString */ - QCString toPilot( const QString &s ); + TQCString toPilot( const TQString &s ); /** Create a codec for translating handheld native 8 bit to Unicode, * using the given codec @p name -- this will often be latin1, but @@ -117,10 +117,10 @@ namespace Pilot * * @return @c true on success, @c false otherwise */ - bool setupPilotCodec(const QString &name); + bool setupPilotCodec(const TQString &name); /** Returns the name of the codec being used. */ - QString codecName(); + TQString codecName(); /** For debugging, display category names for the given AppInfo * structure. Called by dump(). You must pass a valid reference. @@ -140,12 +140,12 @@ namespace Pilot return ((unsigned int)cname[i][0] ) ) { @@ -157,7 +157,7 @@ namespace Pilot } else { - return QString::null; + return TQString::null; } } @@ -166,16 +166,16 @@ namespace Pilot * all sixteen categories -- empty category names on the * handheld are skipped. */ - inline QStringList categoryNames(const struct CategoryAppInfo *info) + inline TQStringList categoryNames(const struct CategoryAppInfo *info) { - QStringList l; + TQStringList l; if (!info) { return l; } for (unsigned int i=0; i