summaryrefslogtreecommitdiffstats
path: root/kmail/encodingdetector.h
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 /kmail/encodingdetector.h
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 'kmail/encodingdetector.h')
-rw-r--r--kmail/encodingdetector.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmail/encodingdetector.h b/kmail/encodingdetector.h
index 51ccb4695..0d1c000ab 100644
--- a/kmail/encodingdetector.h
+++ b/kmail/encodingdetector.h
@@ -23,7 +23,7 @@
#ifndef ENCODINGDETECTOR_H
#define ENCODINGDETECTOR_H
-#include <qstring.h>
+#include <tqstring.h>
class QTextCodec;
class QTextDecoder;
@@ -41,11 +41,11 @@ class EncodingDetectorPrivate;
*
* Typical use:
* \code
- * QByteArray data;
+ * TQByteArray data;
* ...
* EncodingDetector detector;
* detector.setAutoDetectLanguage(EncodingDetector::Cyrillic);
- * QString out=detector.decode(data);
+ * TQString out=detector.decode(data);
* \endcode
*
*
@@ -98,10 +98,10 @@ public:
/**
* Allows to set Default codec, EncodingChoiceSource, AutoDetectScript
*/
- EncodingDetector(QTextCodec* codec, EncodingChoiceSource source, AutoDetectScript script=None);
+ EncodingDetector(TQTextCodec* codec, EncodingChoiceSource source, AutoDetectScript script=None);
~EncodingDetector();
- //const QTextCodec* codec() const;
+ //const TQTextCodec* codec() const;
/**
* @returns true if specified encoding was recognized
@@ -116,8 +116,8 @@ public:
bool visuallyOrdered() const;
-// void setAutoDetectLanguage( const QString& );
-// const QString& autoDetectLanguage() const;
+// void setAutoDetectLanguage( const TQString& );
+// const TQString& autoDetectLanguage() const;
void setAutoDetectLanguage( AutoDetectScript );
AutoDetectScript autoDetectLanguage() const;
@@ -134,14 +134,14 @@ public:
* Analyze text data.
* @returns true if there was enough data for accurate detection
*/
- bool analyze( const QByteArray &data );
+ bool analyze( const TQByteArray &data );
/**
* Takes lang name _after_ it were i18n()'ed
*/
- static AutoDetectScript scriptForName(const QString& lang);
- static QString nameForScript(AutoDetectScript);
- static AutoDetectScript scriptForLanguageCode(const QString &lang);
+ static AutoDetectScript scriptForName(const TQString& lang);
+ static TQString nameForScript(AutoDetectScript);
+ static AutoDetectScript scriptForLanguageCode(const TQString &lang);
static bool hasAutoDetectionForScript(AutoDetectScript);
protected:
@@ -155,9 +155,9 @@ protected:
bool errorsIfUtf8 (const char* data, int length);
/**
- * @returns QTextDecoder for detected encoding
+ * @returns TQTextDecoder for detected encoding
*/
- QTextDecoder* decoder();
+ TQTextDecoder* decoder();
private:
EncodingDetectorPrivate* const d;