summaryrefslogtreecommitdiffstats
path: root/kode/kxml_compiler/parser.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 /kode/kxml_compiler/parser.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 'kode/kxml_compiler/parser.h')
-rw-r--r--kode/kxml_compiler/parser.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/kode/kxml_compiler/parser.h b/kode/kxml_compiler/parser.h
index b9ff542c0..6efd6f746 100644
--- a/kode/kxml_compiler/parser.h
+++ b/kode/kxml_compiler/parser.h
@@ -35,11 +35,11 @@
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qdom.h>
-#include <qregexp.h>
-#include <qmap.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqdom.h>
+#include <tqregexp.h>
+#include <tqmap.h>
#include <iostream>
@@ -50,7 +50,7 @@ class Pattern
bool isEmpty();
- QString asString();
+ TQString asString();
void merge( Pattern p );
@@ -63,11 +63,11 @@ class Pattern
class Reference
{
public:
- typedef QValueList<Reference *> List;
+ typedef TQValueList<Reference *> List;
Reference() : substituted( false ) {}
- QString name;
+ TQString name;
Pattern pattern;
bool substituted;
@@ -76,22 +76,22 @@ class Reference
class Attribute
{
public:
- typedef QValueList<Attribute *> List;
+ typedef TQValueList<Attribute *> List;
- QString name;
- QValueList<QString> choices;
- QString defaultValue;
+ TQString name;
+ TQValueList<TQString> choices;
+ TQString defaultValue;
Pattern pattern;
};
class Element
{
public:
- typedef QValueList<Element *> List;
+ typedef TQValueList<Element *> List;
Element();
- QString name;
+ TQString name;
Element::List elements;
Attribute::List attributes;
Reference::List references;
@@ -105,12 +105,12 @@ class Parser
public:
Parser();
- Element *parse( const QDomElement &docElement );
+ Element *parse( const TQDomElement &docElement );
- Reference *parseReference( const QDomElement &referenceElement );
- bool parseAttribute( const QDomElement &attributeElement,
+ Reference *parseReference( const TQDomElement &referenceElement );
+ bool parseAttribute( const TQDomElement &attributeElement,
Attribute *a );
- bool parseElement( const QDomElement &elementElement, Element *e,
+ bool parseElement( const TQDomElement &elementElement, Element *e,
Pattern pattern );
void substituteReferences( Element *s );
@@ -128,7 +128,7 @@ class Parser
void dumpDefinitionMap();
private:
- QMap<QString,Element::List> mDefinitionMap;
+ TQMap<TQString,Element::List> mDefinitionMap;
};
#endif