summaryrefslogtreecommitdiffstats
path: root/kmail/encodingdetector.h
diff options
context:
space:
mode:
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;