summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetemessage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/kopetemessage.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopetemessage.h')
-rw-r--r--kopete/libkopete/kopetemessage.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/kopete/libkopete/kopetemessage.h b/kopete/libkopete/kopetemessage.h
index 0737d2ae..03a09bd9 100644
--- a/kopete/libkopete/kopetemessage.h
+++ b/kopete/libkopete/kopetemessage.h
@@ -23,13 +23,13 @@
#include <ksharedptr.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qdom.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qdatetime.h>
-#include <qvaluelist.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqdom.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqdatetime.h>
+#include <tqvaluelist.h>
#include "kopete_export.h"
@@ -117,9 +117,9 @@ public:
* @param requestedPlugin Requested view plugin for the message
* @param type Type of the message, see @ref MessageType
*/
- Message( const Contact *fromKC, const QPtrList<Contact> &toKC, const QString &body,
+ Message( const Contact *fromKC, const TQPtrList<Contact> &toKC, const TQString &body,
MessageDirection direction, MessageFormat format = PlainText,
- const QString &requestedPlugin = QString::null, MessageType type = TypeNormal );
+ const TQString &requestedPlugin = TQString::null, MessageType type = TypeNormal );
/**
* Constructs a new message. See @ref setBody() to more information about the format
@@ -131,9 +131,9 @@ public:
* @param requestedPlugin Requested view plugin for the message
* @param type Type of the message, see @ref MessageType
*/
- Message( const Contact *fromKC, const Contact *toKC, const QString &body,
+ Message( const Contact *fromKC, const Contact *toKC, const TQString &body,
MessageDirection direction, MessageFormat format = PlainText,
- const QString &requestedPlugin = QString::null, MessageType type = TypeNormal );
+ const TQString &requestedPlugin = TQString::null, MessageType type = TypeNormal );
/**
* Constructs a new message. See @ref setBody() to more information about the format
@@ -146,9 +146,9 @@ public:
* @param requestedPlugin Requested view plugin for the message
* @param type Type of the message, see @ref MessageType
*/
- Message( const Contact *fromKC, const QPtrList<Contact> &toKC, const QString &body,
- const QString &subject, MessageDirection direction, MessageFormat format = PlainText,
- const QString &requestedPlugin = QString::null, MessageType type = TypeNormal );
+ Message( const Contact *fromKC, const TQPtrList<Contact> &toKC, const TQString &body,
+ const TQString &subject, MessageDirection direction, MessageFormat format = PlainText,
+ const TQString &requestedPlugin = TQString::null, MessageType type = TypeNormal );
/**
* Constructs a new message. See @ref setBody() to more information about the format
@@ -161,9 +161,9 @@ public:
* @param requestedPlugin Requested view plugin for the message
* @param type Type of the message, see @ref MessageType
*/
- Message( const QDateTime &timeStamp, const Contact *fromKC, const QPtrList<Contact> &toKC,
- const QString &body, MessageDirection direction, MessageFormat format = PlainText,
- const QString &requestedPlugin = QString::null, MessageType type = TypeNormal );
+ Message( const TQDateTime &timeStamp, const Contact *fromKC, const TQPtrList<Contact> &toKC,
+ const TQString &body, MessageDirection direction, MessageFormat format = PlainText,
+ const TQString &requestedPlugin = TQString::null, MessageType type = TypeNormal );
/**
* Constructs a new message. See @ref setBody() to more information about the format
@@ -177,9 +177,9 @@ public:
* @param requestedPlugin Requested view plugin for the message
* @param type Type of the message, see @ref MessageType
*/
- Message( const QDateTime &timeStamp, const Contact *fromKC, const QPtrList<Contact> &toKC,
- const QString &body, const QString &subject, MessageDirection direction,
- MessageFormat format = PlainText, const QString &requestedPlugin = QString::null,
+ Message( const TQDateTime &timeStamp, const Contact *fromKC, const TQPtrList<Contact> &toKC,
+ const TQString &body, const TQString &subject, MessageDirection direction,
+ MessageFormat format = PlainText, const TQString &requestedPlugin = TQString::null,
MessageType type = TypeNormal );
/**
@@ -198,7 +198,7 @@ public:
* Accessor method for the timestamp of the message
* @return The message's timestamp
*/
- QDateTime timestamp() const;
+ TQDateTime timestamp() const;
/**
* Accessor method for the Contact that sent this message
@@ -210,7 +210,7 @@ public:
* Accessor method for the Contacts that this message was sent to
* @return Pointer list of the Contacts this message was sent to
*/
- QPtrList<Contact> to() const;
+ TQPtrList<Contact> to() const;
/**
* @return the @ref MessageType of this message
@@ -221,31 +221,31 @@ public:
* @return the view plugin you would prefer to use to read this message. If
* null, Kopete will use the user's preferred plugin.
*/
- QString requestedPlugin() const;
+ TQString requestedPlugin() const;
/**
* Accessor method for the foreground color
* @return The message's foreground color
*/
- QColor fg() const;
+ TQColor fg() const;
/**
* Accessor method for the background color of the message
* @return The message's background color
*/
- QColor bg() const;
+ TQColor bg() const;
/**
* Accessor method for the font of the message
* @return The message's font
*/
- QFont font() const;
+ TQFont font() const;
/**
* Accessor method for the subject of the message
* @return The message subject
*/
- QString subject() const;
+ TQString subject() const;
/**
* Accessor method for the format of the message
@@ -276,19 +276,19 @@ public:
* Sets the foreground color for the message
* @param color The color
*/
- void setFg( const QColor &color );
+ void setFg( const TQColor &color );
/**
* Sets the background color for the message
* @param color The color
*/
- void setBg( const QColor &color );
+ void setBg( const TQColor &color );
/**
* Sets the font for the message
* @param font The font
*/
- void setFont( const QFont &font );
+ void setFont( const TQFont &font );
/**
* @brief Sets the body of the message
@@ -296,13 +296,13 @@ public:
* @param body The body
* @param format The format of the message, @see MessageFormat
*/
- void setBody( const QString &body, MessageFormat format = PlainText );
+ void setBody( const TQString &body, MessageFormat format = PlainText );
/**
* Get the message body back as plain text
* @return The message body as plain text
*/
- QString plainBody() const;
+ TQString plainBody() const;
/**
* Get the message body as escaped (X)HTML format.
@@ -310,14 +310,14 @@ public:
* and newlines (\\n) are converted to \<br /\>
* @return The message body as escaped text
*/
- QString escapedBody() const;
+ TQString escapedBody() const;
/**
* Get the message body as parsed HTML with Emoticons, and URL parsed
* this should be ready to be shown in the chatwindow.
* @return The HTML and Emoticon parsed message body
*/
- QString parsedBody() const;
+ TQString parsedBody() const;
/**
* Get the related message manager.
@@ -356,7 +356,7 @@ public:
* Return HTML style attribute for this message.
* @return A string formatted like this: "style=attr"
*/
- QString getHtmlStyleAttribute() const;
+ TQString getHtmlStyleAttribute() const;
public: /* static helpers */
@@ -368,7 +368,7 @@ public: /* static helpers */
*
* @param xml The string you want to unescape
*/
- static QString unescape( const QString &xml );
+ static TQString unescape( const TQString &xml );
/**
* Indicate whether the string is right-to-left (Arabic or Hebrew are bidi locales)
@@ -381,7 +381,7 @@ public: /* static helpers */
* @brief Transform a pleintext message to an html.
* it escape main entity like &gt; &lt; add some &lt;br /&gt; or &amp;nbsp;
*/
- static QString escape( const QString & );
+ static TQString escape( const TQString & );
/**
@@ -394,8 +394,8 @@ public: /* static helpers */
* is defined as a successfull decoding using either UTF8 or the codec you
* provided. If a guess has to be taken, success will be false.
*/
- static QString decodeString( const QCString &message,
- const QTextCodec *providedCodec = 0L, bool *success = 0L );
+ static TQString decodeString( const TQCString &message,
+ const TQTextCodec *providedCodec = 0L, bool *success = 0L );
private:
/**
@@ -408,12 +408,12 @@ private:
* Called internally by @ref setBody() and the constructor
* Basically @ref setBody() without detach
*/
- void doSetBody( const QString &body, MessageFormat format = PlainText );
+ void doSetBody( const TQString &body, MessageFormat format = PlainText );
class Private;
KSharedPtr<Private> d;
- static QString parseLinks( const QString &message, MessageFormat format );
+ static TQString parseLinks( const TQString &message, MessageFormat format );
};
}