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 --- libkdepim/linklocator.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libkdepim/linklocator.h') diff --git a/libkdepim/linklocator.h b/libkdepim/linklocator.h index 2c7fdbb1..6078fed1 100644 --- a/libkdepim/linklocator.h +++ b/libkdepim/linklocator.h @@ -23,8 +23,8 @@ #ifndef LINKLOCATOR_H_INCLUDED #define LINKLOCATOR_H_INCLUDED -#include -#include +#include +#include #include @@ -49,7 +49,7 @@ public: * @param pos An index into 'text' from where the search * should begin. */ - LinkLocator(const QString& text, int pos = 0); + LinkLocator(const TQString& text, int pos = 0); /** * Sets the maximum length of URLs that will be matched by @@ -98,7 +98,7 @@ public: * * @return The URL at the current scan position, or an empty string. */ - QString getUrl(); + TQString getUrl(); /** * Attempts to grab an email address. If there is an @ symbol at the @@ -111,7 +111,7 @@ public: * @return The email address at the current scan position, or an empty * string. */ - QString getEmailAddress(); + TQString getEmailAddress(); /** * Converts plaintext into html. The following characters are converted to HTML @@ -136,7 +136,7 @@ public: * @return An HTML version of the text supplied in the 'plainText' parameter, * suitable for inclusion in the BODY of an HTML document. */ - static QString convertToHtml(const QString& plainText, int flags = 0, + static TQString convertToHtml(const TQString& plainText, int flags = 0, int maxUrlLen = 4096, int maxAddressLen = 255); static const int PreserveSpaces = 0x01; @@ -146,15 +146,15 @@ public: /** Embed the given PNG image into a data URL. * @param iconPath path to the PNG image - * @return A data URL, QString::null if the image could not be read. + * @return A data URL, TQString::null if the image could not be read. */ - static QString pngToDataUrl( const QString & iconPath ); + static TQString pngToDataUrl( const TQString & iconPath ); protected: /** * The plaintext string being scanned for URLs and email addresses. */ - QString mText; + TQString mText; /** * The current scan position. */ @@ -162,7 +162,7 @@ protected: private: bool atUrl() const; - bool isEmptyUrl(const QString& url); + bool isEmptyUrl(const TQString& url); /** * Replaces smiley text with an tag containing the relevant image. @@ -170,20 +170,20 @@ private: * "(^|\s+)text(\s+|$)" * @return An HTML String with for an emoticon */ - QString getEmoticon(); + TQString getEmoticon(); /** * Highlight text according to *bold*, /italic/ and _underlined_ markup. * @return A HTML string. */ - QString highlightedText(); + TQString highlightedText(); int mMaxUrlLen; int mMaxAddressLen; // maps the smiley text to the corresponding emoticon name - static QMap *s_smileyEmoticonNameMap; + static TQMap *s_smileyEmoticonNameMap; // cache for the HTML representation of a smiley - static QMap *s_smileyEmoticonHTMLCache; + static TQMap *s_smileyEmoticonHTMLCache; }; #endif // LINKLOCATOR_H_INCLUDED -- cgit v1.2.3