diff options
Diffstat (limited to 'kode/kwsdl/schema/parser.h')
-rw-r--r-- | kode/kwsdl/schema/parser.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kode/kwsdl/schema/parser.h b/kode/kwsdl/schema/parser.h index afaf3dae6..3469e016b 100644 --- a/kode/kwsdl/schema/parser.h +++ b/kode/kwsdl/schema/parser.h @@ -23,8 +23,8 @@ #ifndef SCHEMA_PARSER_H #define SCHEMA_PARSER_H -#include <qdom.h> -#include <qvaluelist.h> +#include <tqdom.h> +#include <tqvaluelist.h> #include "types.h" #include "typestable.h" @@ -34,23 +34,23 @@ namespace Schema { class Parser { public: - Parser( const QString &nameSpace = QString() ); + Parser( const TQString &nameSpace = TQString() ); ~Parser(); Types types() const; void clear(); - void setSchemaBaseUrl( const QString& ); + void setSchemaBaseUrl( const TQString& ); - void parseNameSpace( const QDomElement &element ); - bool parseSchemaTag( const QDomElement &element ); + void parseNameSpace( const TQDomElement &element ); + bool parseSchemaTag( const TQDomElement &element ); const XSDType *type( const QualifiedName &type ); const XSDType *type( int id ) const; int numTypes() const; - QString typeName( int id ) const; + TQString typeName( int id ) const; Element *element( const QualifiedName &element ) const; Element *element( int id ) const; @@ -61,7 +61,7 @@ class Parser Attribute *attribute( int id ) const; int numAttributes() const; - QString targetNamespace() const; + TQString targetNamespace() const; int typeId( const QualifiedName &name, bool create = false ); @@ -75,30 +75,30 @@ class Parser int attributeType( const QualifiedName &type ); private: - void parseImport( const QDomElement& ); - void parseElement( const QDomElement& ); - void parseAttribute( const QDomElement& ); + void parseImport( const TQDomElement& ); + void parseElement( const TQDomElement& ); + void parseAttribute( const TQDomElement& ); - void parseAnnotation( const QDomElement& ); - void parseAnnotation( const QDomElement&, QString& ); - void parseAnnotation( const QDomElement&, ComplexType* ); - void parseAnnotation( const QDomElement&, SimpleType* ); - XSDType *parseComplexType( const QDomElement& ); + void parseAnnotation( const TQDomElement& ); + void parseAnnotation( const TQDomElement&, TQString& ); + void parseAnnotation( const TQDomElement&, ComplexType* ); + void parseAnnotation( const TQDomElement&, SimpleType* ); + XSDType *parseComplexType( const TQDomElement& ); - void all( const QDomElement&, ComplexType* ); - void cs( const QDomElement&, ComplexType* ); + void all( const TQDomElement&, ComplexType* ); + void cs( const TQDomElement&, ComplexType* ); - void addElement( const QDomElement&, ComplexType* ); + void addElement( const TQDomElement&, ComplexType* ); - void addAttribute( const QDomElement&, ComplexType* ); - void addAny( const QDomElement&, ComplexType* ); - void addAnyAttribute( const QDomElement&, ComplexType* ); - int addExternalElement( const QString&, int ); + void addAttribute( const TQDomElement&, ComplexType* ); + void addAny( const TQDomElement&, ComplexType* ); + void addAnyAttribute( const TQDomElement&, ComplexType* ); + int addExternalElement( const TQString&, int ); - XSDType *parseSimpleType( const QDomElement& ); - void parseRestriction( const QDomElement&, SimpleType* ); - void parseComplexContent( const QDomElement&, ComplexType* ); - void parseSimpleContent( const QDomElement&, ComplexType* ); + XSDType *parseSimpleType( const TQDomElement& ); + void parseRestriction( const TQDomElement&, SimpleType* ); + void parseComplexContent( const TQDomElement&, ComplexType* ); + void parseSimpleContent( const TQDomElement&, ComplexType* ); void resolveForwardElementRefs(); @@ -106,13 +106,13 @@ class Parser void resolveForwardDerivations(); bool shouldResolve(); - void importSchema( const QString &location ); + void importSchema( const TQString &location ); bool mElementQualified; bool mAttributeQualified; - QMap<QString, QString> mNameSpaceMap; - QString mNameSpace; - QString mPrefix; + TQMap<TQString, TQString> mNameSpaceMap; + TQString mNameSpace; + TQString mPrefix; TypesTable mTypesTable; Element::PtrList mElements; @@ -127,9 +127,9 @@ class Parser ComplexType::Derivation derivation; } ForwardDerivation; - QValueList<ForwardDerivation> mForwardDerivations; - QStringList mImportedSchemas; - QString mSchemaBaseUrl; + TQValueList<ForwardDerivation> mForwardDerivations; + TQStringList mImportedSchemas; + TQString mSchemaBaseUrl; }; } |