summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsgbase.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/kmmsgbase.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/kmmsgbase.h')
-rw-r--r--kmail/kmmsgbase.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/kmail/kmmsgbase.h b/kmail/kmmsgbase.h
index 355666823..9e7d70cb0 100644
--- a/kmail/kmmsgbase.h
+++ b/kmail/kmmsgbase.h
@@ -23,7 +23,7 @@
// for large file support flags
#include <config.h>
#include <sys/types.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <time.h>
class QCString;
@@ -149,10 +149,10 @@ public:
void setParent(KMFolder* p) { mParent = p; }
/** Convert the given message status to a string. */
- static QCString statusToStr(const KMMsgStatus status);
+ static TQCString statusToStr(const KMMsgStatus status);
/** Convert the given message status to a string. */
- QString statusToSortRank();
+ TQString statusToSortRank();
/** Returns TRUE if object is a real message (not KMMsgInfo or KMMsgBase) */
virtual bool isMessage(void) const;
@@ -240,28 +240,28 @@ public:
/** Set encryption status of the message and mark dirty. Optional
* optimization: @p idx may specify the index of this message within
* the parent folder. */
- virtual void setEncryptionStateChar( QChar status, int idx = -1 );
+ virtual void setEncryptionStateChar( TQChar status, int idx = -1 );
/** Set signature status of the message and mark dirty. Optional
* optimization: @p idx may specify the index of this message within
* the parent folder. */
- virtual void setSignatureStateChar( QChar status, int idx = -1 );
+ virtual void setSignatureStateChar( TQChar status, int idx = -1 );
/** Important header fields of the message that are also kept in the index. */
- virtual QString subject(void) const = 0;
- virtual QString fromStrip(void) const = 0;
- virtual QString toStrip(void) const = 0;
- virtual QString replyToIdMD5(void) const = 0;
- virtual QString msgIdMD5(void) const = 0;
- virtual QString replyToAuxIdMD5() const = 0;
- virtual QString strippedSubjectMD5() const = 0;
+ virtual TQString subject(void) const = 0;
+ virtual TQString fromStrip(void) const = 0;
+ virtual TQString toStrip(void) const = 0;
+ virtual TQString replyToIdMD5(void) const = 0;
+ virtual TQString msgIdMD5(void) const = 0;
+ virtual TQString replyToAuxIdMD5() const = 0;
+ virtual TQString strippedSubjectMD5() const = 0;
virtual bool subjectIsPrefixed() const = 0;
virtual time_t date(void) const = 0;
- virtual QString dateStr(void) const;
- virtual QString xmark(void) const = 0;
+ virtual TQString dateStr(void) const;
+ virtual TQString xmark(void) const = 0;
/** Set date. */
- virtual void setDate(const QCString &aStrDate);
+ virtual void setDate(const TQCString &aStrDate);
virtual void setDate(time_t aUnixTime) = 0;
/** Returns TRUE if changed since last folder-sync. */
@@ -271,8 +271,8 @@ public:
void setDirty(bool b) { mDirty = b; }
/** Set subject/from/date and xmark. */
- virtual void setSubject(const QString&) = 0;
- virtual void setXMark(const QString&) = 0;
+ virtual void setSubject(const TQString&) = 0;
+ virtual void setXMark(const TQString&) = 0;
/** Calculate strippedSubject */
virtual void initStrippedSubjectMD5() = 0;
@@ -285,8 +285,8 @@ public:
virtual void setFolderOffset(off_t offs) = 0;
/** Get/set msg filename */
- virtual QString fileName(void) const = 0;
- virtual void setFileName(const QString& filename) = 0;
+ virtual TQString fileName(void) const = 0;
+ virtual void setFileName(const TQString& filename) = 0;
/** Get/set size of message including the whole header in bytes. */
virtual size_t msgSize(void) const = 0;
@@ -312,20 +312,20 @@ public:
* (e.g. ':' or ',') and skip the then following blanks (if any) too.
* If keywordFound is specified it will be TRUE if a keyword was skipped
* and FALSE otherwise. */
- static QString skipKeyword(const QString& str, QChar sepChar=':',
+ static TQString skipKeyword(const TQString& str, TQChar sepChar=':',
bool* keywordFound=0);
- /** Return a QTextCodec for the specified charset.
- * This function is a bit more tolerant, than QTextCodec::codecForName */
- static const QTextCodec* codecForName(const QCString& _str);
+ /** Return a TQTextCodec for the specified charset.
+ * This function is a bit more tolerant, than TQTextCodec::codecForName */
+ static const TQTextCodec* codecForName(const TQCString& _str);
/** Convert all non-ascii characters to question marks
* If ok is non-null, *ok will be set to true if all characters
* where ascii, *ok will be set to false otherwise */
- static QCString toUsAscii(const QString& _str, bool *ok=0);
+ static TQCString toUsAscii(const TQString& _str, bool *ok=0);
/** Return a list of the supported encodings */
- static QStringList supportedEncodings(bool usAscii);
+ static TQStringList supportedEncodings(bool usAscii);
/** Copy all values from other to this object. */
void assign(const KMMsgBase* other);
@@ -337,43 +337,43 @@ public:
KMMsgBase( const KMMsgBase& other );
/** Helper function for encodeRFC2047String */
- static QCString encodeRFC2047Quoted(const QCString& aStr, bool base64);
+ static TQCString encodeRFC2047Quoted(const TQCString& aStr, bool base64);
/** This function handles both encodings described in RFC2047:
Base64 ("=?iso-8859-1?b?...?=") and quoted-printable */
- static QString decodeRFC2047String(const QCString& aStr, const QCString prefCharset = "");
+ static TQString decodeRFC2047String(const TQCString& aStr, const TQCString prefCharset = "");
/** Encode given string as described in RFC2047:
using quoted-printable. */
- static QCString encodeRFC2047String(const QString& aStr,
- const QCString& charset);
+ static TQCString encodeRFC2047String(const TQString& aStr,
+ const TQCString& charset);
/** Encode given string as described in RFC2231
(parameters in MIME headers) */
- static QCString encodeRFC2231String(const QString& aStr,
- const QCString& charset);
+ static TQCString encodeRFC2231String(const TQString& aStr,
+ const TQCString& charset);
/** Decode given string as described in RFC2231 */
- static QString decodeRFC2231String(const QCString& aStr);
+ static TQString decodeRFC2231String(const TQCString& aStr);
/** Extract a given param from the RFC2231-encoded header field, in particular
concatenate possibly multiple entries, which are given as paramname*0=..;
paramname*1=..; ... or paramname*0*=..; paramname*1*=..; ... and return
their value as one string. That string will still be encoded */
- static QCString extractRFC2231HeaderField( const QCString &aStr, const QCString &field );
+ static TQCString extractRFC2231HeaderField( const TQCString &aStr, const TQCString &field );
/** Calculate the base64 encoded md5sum (sans the trailing equal
- signs). If @p utf8 is false, uses QString::latin1() to calculate
- the md5sum of, else uses QString::utf8() */
- static QString base64EncodedMD5( const QString & aStr, bool utf8=false );
- static QString base64EncodedMD5( const QCString & aStr );
- static QString base64EncodedMD5( const char * aStr, int len=-1 );
+ signs). If @p utf8 is false, uses TQString::latin1() to calculate
+ the md5sum of, else uses TQString::utf8() */
+ static TQString base64EncodedMD5( const TQString & aStr, bool utf8=false );
+ static TQString base64EncodedMD5( const TQCString & aStr );
+ static TQString base64EncodedMD5( const char * aStr, int len=-1 );
/**
* Find out preferred charset for 'text'.
* First @p encoding is tried and if that one is not suitable,
* the encodings in @p encodingList are tried.
*/
- static QCString autoDetectCharset(const QCString &encoding, const QStringList &encodingList, const QString &text);
+ static TQCString autoDetectCharset(const TQCString &encoding, const TQStringList &encodingList, const TQString &text);
/** Returns the message serial number for the message. */
virtual unsigned long getMsgSerNum() const;
@@ -391,14 +391,14 @@ public:
sequence of whitespace-delimited prefixes at the beginning of
@p str is replaced by @p newPrefix.
**/
- static QString replacePrefixes( const QString& str,
- const QStringList& prefixRegExps,
+ static TQString replacePrefixes( const TQString& str,
+ const TQStringList& prefixRegExps,
bool replace,
- const QString& newPrefix );
+ const TQString& newPrefix );
/** Returns @p str with all "forward" and "reply" prefixes stripped off.
**/
- static QString stripOffPrefixes( const QString& str );
+ static TQString stripOffPrefixes( const TQString& str );
/** Check for prefixes @p prefixRegExps in #subject(). If none
is found, @p newPrefix + ' ' is prepended to the subject and the
@@ -406,18 +406,18 @@ public:
sequence of whitespace-delimited prefixes at the beginning of
#subject() is replaced by @p newPrefix
**/
- QString cleanSubject(const QStringList& prefixRegExps, bool replace,
- const QString& newPrefix) const;
+ TQString cleanSubject(const TQStringList& prefixRegExps, bool replace,
+ const TQString& newPrefix) const;
/** Return this mails subject, with all "forward" and "reply"
prefixes removed */
- QString cleanSubject() const;
+ TQString cleanSubject() const;
/** Return this mails subject, formatted for "forward" mails */
- QString forwardSubject() const;
+ TQString forwardSubject() const;
/** Return this mails subject, formatted for "reply" mails */
- QString replySubject() const;
+ TQString replySubject() const;
/** Reads config settings from group "Composer" and sets all internal
* variables (e.g. indent-prefix, etc.) */
@@ -464,7 +464,7 @@ public:
/** access to long msgparts */
off_t getLongPart(MsgPartType) const;
/** access to string msgparts */
- QString getStringPart(MsgPartType) const;
+ TQString getStringPart(MsgPartType) const;
/** sync'ing just one KMMsgBase */
bool syncIndexString() const;
};