summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/private/kopeteemoticons.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/private/kopeteemoticons.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/private/kopeteemoticons.h')
-rw-r--r--kopete/libkopete/private/kopeteemoticons.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/libkopete/private/kopeteemoticons.h b/kopete/libkopete/private/kopeteemoticons.h
index 84fd305a..762a02a0 100644
--- a/kopete/libkopete/private/kopeteemoticons.h
+++ b/kopete/libkopete/private/kopeteemoticons.h
@@ -18,9 +18,9 @@
#ifndef kopeteemoticons_h__
#define kopeteemoticons_h__
-#include <qobject.h>
-#include <qvaluelist.h>
-#include <qregexp.h>
+#include <tqobject.h>
+#include <tqvaluelist.h>
+#include <tqregexp.h>
#include "kopete_export.h"
@@ -35,7 +35,7 @@ public:
* chosen by the user.
* Instead, use @ref Kopete::Emoticons::self()
**/
- Emoticons( const QString &theme = QString::null );
+ Emoticons( const TQString &theme = TQString::null );
~Emoticons( );
@@ -63,10 +63,10 @@ public:
* If nicks is provided, they will not be parsed if they
* exist in message.
*/
- static QString parseEmoticons( const QString &message, ParseMode = SkipHTML ) ;
+ static TQString parseEmoticons( const TQString &message, ParseMode = SkipHTML ) ;
- QString parse( const QString &message, ParseMode = SkipHTML );
+ TQString parse( const TQString &message, ParseMode = SkipHTML );
/**
* TokenType, a token might be an image ( emoticon ) or text.
@@ -77,15 +77,15 @@ public:
};
/**
- * A token consists of a QString text which is either a regular text
+ * A token consists of a TQString text which is either a regular text
* or a path to image depending on the type.
* If type is Image the text refers to an image path.
* If type is Text the text refers to a regular text.
*/
struct Token {
Token() : type( Undefined ) {}
- Token( TokenType t, const QString &m ) : type( t ), text(m) {}
- Token( TokenType t, const QString &m, const QString &p, const QString &html )
+ Token( TokenType t, const TQString &m ) : type( t ), text(m) {}
+ Token( TokenType t, const TQString &m, const TQString &p, const TQString &html )
: type( t ), text( m ), picPath( p ), picHTMLCode( html ) {}
TokenType type;
QString text;
@@ -96,9 +96,9 @@ public:
/**
* Static function which will call tokenize
- * @see tokenize( const QString& )
+ * @see tokenize( const TQString& )
*/
- static QValueList<Token> tokenizeEmoticons( const QString &message, ParseMode mode = DefaultParseMode );
+ static TQValueList<Token> tokenizeEmoticons( const TQString &message, ParseMode mode = DefaultParseMode );
/**
* Tokenizes an message.
@@ -120,17 +120,17 @@ public:
* Note: quotation marks are used to emphasize white spaces.
* @param message is the message to tokenize
* @param mode is a bitmask of ParseMode enum
- * @return a QValueList which consiste of ordered tokens of the text.
+ * @return a TQValueList which consiste of ordered tokens of the text.
* @author Engin AYDOGAN < [email protected] >
* @since 23-03-05
*/
- QValueList<Token> tokenize( const QString &message, uint mode = DefaultParseMode );
+ TQValueList<Token> tokenize( const TQString &message, uint mode = DefaultParseMode );
/**
* Return all emoticons and the corresponding icon.
* (only one emoticon per image)
*/
- QMap<QString, QStringList> emoticonAndPicList();
+ TQMap<TQString, TQStringList> emoticonAndPicList();
public slots:
/**
@@ -149,19 +149,19 @@ private:
* add an emoticon to our mapping if
* an animation/pixmap has been found for it
**/
- void addIfPossible( const QString& filenameNoExt, const QStringList &emoticons );
+ void addIfPossible( const TQString& filenameNoExt, const TQStringList &emoticons );
/**
* uses the kopete's emoticons.xml for the theme
* @see initEmoticons
*/
- void initEmoticon_emoticonsxml( const QString & filename);
+ void initEmoticon_emoticonsxml( const TQString & filename);
/**
* uses the JEP-0038 xml description for the theme
* @see initEmoticons
*/
- void initEmoticon_JEP0038( const QString & filename);
+ void initEmoticon_JEP0038( const TQString & filename);
/**
* sorts emoticons for convenient parsing, which yields greedy matching on
@@ -180,7 +180,7 @@ private slots:
* Fills the map with paths and emoticons
* This needs to be done on every emoticon-theme change
**/
- void initEmoticons ( const QString &theme = QString::null );
+ void initEmoticons ( const TQString &theme = TQString::null );
};