summaryrefslogtreecommitdiffstats
path: root/kommander/plugin/specialinformation.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/plugin/specialinformation.h
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/plugin/specialinformation.h')
-rw-r--r--kommander/plugin/specialinformation.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/kommander/plugin/specialinformation.h b/kommander/plugin/specialinformation.h
index 20b6ea04..fa898620 100644
--- a/kommander/plugin/specialinformation.h
+++ b/kommander/plugin/specialinformation.h
@@ -18,10 +18,10 @@
#define _HAVE_SPECIALINFORMATION_H_
/* QT INCLUDES */
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qpair.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqpair.h>
class SpecialFunction
{
@@ -35,10 +35,10 @@ public:
enum PrototypeFlags {SkipFirstArgument = 1, ShowArgumentNames = 2, NoSpaces = 4};
/* Flags describing which parser supports the function */
enum ParserType {MacroParser = 1, InternalParser = 2, AllParsers = 3};
- SpecialFunction(const QString& function, const QString& description
- = QString::null, int minArgs = -1, int maxArgs = -1);
- SpecialFunction(ParserType p, const QString& function, const QString& description
- = QString::null, int minArgs = -1, int maxArgs = -1);
+ SpecialFunction(const TQString& function, const TQString& description
+ = TQString::null, int minArgs = -1, int maxArgs = -1);
+ SpecialFunction(ParserType p, const TQString& function, const TQString& description
+ = TQString::null, int minArgs = -1, int maxArgs = -1);
SpecialFunction() {m_minArgs = m_maxArgs = 0;}
/* minimum number of arguments */
int minArg() const {return m_minArgs;}
@@ -47,25 +47,25 @@ public:
/* checks number of arguments */
bool isValidArg(int args) const {return args >= minArg() && args <= maxArg();}
/* function description */
- QString description() const {return m_description;}
+ TQString description() const {return m_description;}
/* function name */
- QString name() const {return m_function;}
+ TQString name() const {return m_function;}
/* function prototype: with parameter types and optional names */
- QString prototype(uint prototypeFlags = 0) const;
+ TQString prototype(uint prototypeFlags = 0) const;
/* i-th parameter name */
- QString argumentName(uint i) const;
+ TQString argumentName(uint i) const;
/* i-th parameter type */
- QString argumentType(uint i) const;
+ TQString argumentType(uint i) const;
/* number of named arguments */
int argumentCount() const;
/* check whether given parser supports the function */
bool isSupported(ParserType p) const;
protected:
- QString m_function;
- QString m_description;
+ TQString m_function;
+ TQString m_description;
int m_minArgs, m_maxArgs;
- QStringList m_args;
- QStringList m_types;
+ TQStringList m_args;
+ TQStringList m_types;
unsigned m_parserTypes;
};
@@ -76,41 +76,41 @@ class SpecialInformation
{
public:
SpecialInformation() {m_defaultGroup = -1;}
- static int function(int group, const QString& fname);
- static SpecialFunction functionObject(const QString& gname, const QString& fname);
- static int group(const QString& gname);
+ static int function(int group, const TQString& fname);
+ static SpecialFunction functionObject(const TQString& gname, const TQString& fname);
+ static int group(const TQString& gname);
static bool isValid(int gname, int fname);
- static bool isValid(const QString& gname, const QString& fname);
+ static bool isValid(const TQString& gname, const TQString& fname);
static bool isValid(int gname, int fname, SpecialFunction::ParserType p);
- static bool isValid(const QString& gname, const QString& fname, SpecialFunction::ParserType p);
+ static bool isValid(const TQString& gname, const TQString& fname, SpecialFunction::ParserType p);
static int minArg(int gname, int fname);
static int maxArg(int gname, int fname);
static int argCount(int gname, int fname);
static bool isValidArg(int gname, int fname, int args);
- static QString description(int gname, int fname);
- static QString prototype(int gname, int fname, uint prototypeFlags = 0);
+ static TQString description(int gname, int fname);
+ static TQString prototype(int gname, int fname, uint prototypeFlags = 0);
/* Insert function supported by all parsers */
- static bool insert(int id, const QString& function, const QString description = QString::null,
+ static bool insert(int id, const TQString& function, const TQString description = TQString::null,
int minArgs = -1, int maxArgs = -1, SpecialFunction::ParserType = SpecialFunction::AllParsers);
/* Insert function supported by (old) macro parser */
- static bool insertMacro(int id, const QString& function, const QString description = QString::null,
+ static bool insertMacro(int id, const TQString& function, const TQString description = TQString::null,
int minArgs = -1, int maxArgs = -1);
/* Insert function supported by (new) internal parser */
- static bool insertInternal(int id, const QString& function, const QString description = QString::null,
+ static bool insertInternal(int id, const TQString& function, const TQString description = TQString::null,
int minArgs = -1, int maxArgs = -1);
- static bool insertAlias(int id, const QString& alias);
- static void insertGroup(int id, const QString& name, const QString& parserName);
+ static bool insertAlias(int id, const TQString& alias);
+ static void insertGroup(int id, const TQString& name, const TQString& parserName);
static void setDefaultGroup(int gname);
static void registerSpecials();
- static QString parserGroupName(const QString&);
- static QStringList groups();
- static QStringList functions(const QString& group);
+ static TQString parserGroupName(const TQString&);
+ static TQStringList groups();
+ static TQStringList functions(const TQString& group);
protected:
- static QMap<int, QMap<int, SpecialFunction> > m_specials;
- static QMap<QString, int> m_groups;
- static QMap<QString, QString> m_parserGroups;
- static QMap<int, QMap<QString, int> > m_functions;
- static QMap<int, QMap<QString, int> > m_aliases;
+ static TQMap<int, TQMap<int, SpecialFunction> > m_specials;
+ static TQMap<TQString, int> m_groups;
+ static TQMap<TQString, TQString> m_parserGroups;
+ static TQMap<int, TQMap<TQString, int> > m_functions;
+ static TQMap<int, TQMap<TQString, int> > m_aliases;
static int m_defaultGroup;
};