diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:35:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:35:40 -0600 |
commit | 17e2ed52dbf8fac39a04331da02b9572e9e2e304 (patch) | |
tree | cd0d57c975a55e05aac71794b363748f24625875 /kode/kwsdl/schema | |
parent | a684ecdeceae222d5aa930478b7bf59a3b7cae7f (diff) | |
download | tdepim-17e2ed52dbf8fac39a04331da02b9572e9e2e304.tar.gz tdepim-17e2ed52dbf8fac39a04331da02b9572e9e2e304.zip |
Rename additional global TQt functions
Diffstat (limited to 'kode/kwsdl/schema')
-rw-r--r-- | kode/kwsdl/schema/complextype.cpp | 18 | ||||
-rw-r--r-- | kode/kwsdl/schema/fileprovider.cpp | 8 | ||||
-rw-r--r-- | kode/kwsdl/schema/parser.cpp | 22 | ||||
-rw-r--r-- | kode/kwsdl/schema/simpletype.cpp | 4 |
4 files changed, 26 insertions, 26 deletions
diff --git a/kode/kwsdl/schema/complextype.cpp b/kode/kwsdl/schema/complextype.cpp index 51ed2ad08..21e9e90c5 100644 --- a/kode/kwsdl/schema/complextype.cpp +++ b/kode/kwsdl/schema/complextype.cpp @@ -171,7 +171,7 @@ const Element *ComplexType::element( const TQString &name ) Element *ComplexType::element( int id ) { if ( id < 0 || id >= (int)mElements.count() ) { - qDebug( "tried to access non existent element" ); + tqDebug( "tried to access non existent element" ); return 0; } @@ -197,7 +197,7 @@ const Attribute *ComplexType::attribute( const TQString &name ) Attribute *ComplexType::attribute( int id ) { if ( id < 0 || id >= (int)mAttributes.count() ) { - qDebug( "tried to access non existent attributes" ); + tqDebug( "tried to access non existent attributes" ); return 0; } @@ -269,7 +269,7 @@ void ComplexType::setContentModel( int model ) mContentModel = model; if ( mContentModel == MIXED ) { mMixed = true; - qDebug( "Mixed content not supported" ); + tqDebug( "Mixed content not supported" ); } else mMixed = false; } @@ -279,7 +279,7 @@ void ComplexType::addAttribute( const TQString &name, int type_id, bool qualifie bool use ) { if ( type_id == 0 ) { - qDebug( "ComplexType:addAttribute(): No type given for attribute" ); + tqDebug( "ComplexType:addAttribute(): No type given for attribute" ); return; } @@ -306,12 +306,12 @@ void ComplexType::addElement( const TQString &name, int type_id, int minOccurs, const TQString &documentation ) { if ( type_id == 0 ) { - qDebug( "ComplexType:addElement() :No type given for element " ); + tqDebug( "ComplexType:addElement() :No type given for element " ); return; } if ( mTopLevelGroup == ALL && maxOccurs > 1 && mIsArray == false ) { - qDebug( "Inside an <all> group elements can occur only once" ); + tqDebug( "Inside an <all> group elements can occur only once" ); return; } @@ -366,17 +366,17 @@ void ComplexType::setCompositor( Compositor type, bool open, int minOccurs, int if ( mPreviousGroup == 0 ) mTopLevelGroup = type; else if ( mTopLevelGroup == this->ALL ) { - qDebug( "This cannot occur inside a top level <all> compositor" ); + tqDebug( "This cannot occur inside a top level <all> compositor" ); return; } if ( type == this->ALL && mPreviousGroup != 0 ) { - qDebug( "<all> can occur only at the top level" ); + tqDebug( "<all> can occur only at the top level" ); return; } if ( type == this->ALL && (minOccurs != 1 || maxOccurs != 1) ) { - qDebug( "<all> can have min/max of only 1 " ); + tqDebug( "<all> can have min/max of only 1 " ); return; } diff --git a/kode/kwsdl/schema/fileprovider.cpp b/kode/kwsdl/schema/fileprovider.cpp index 54fa0163e..10c46381b 100644 --- a/kode/kwsdl/schema/fileprovider.cpp +++ b/kode/kwsdl/schema/fileprovider.cpp @@ -50,7 +50,7 @@ bool FileProvider::get( const TQString &url, TQString &target ) mData.truncate( 0 ); - qDebug( "Downloading external schema '%s'", url.latin1() ); + tqDebug( "Downloading external schema '%s'", url.latin1() ); KIO::TransferJob* job = KIO::get( KURL( url ), false, false ); connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), @@ -83,17 +83,17 @@ void FileProvider::slotData( KIO::Job*, const TQByteArray &data ) void FileProvider::slotResult( KIO::Job *job ) { if ( job->error() ) { - qDebug( "%s", job->errorText().latin1() ); + tqDebug( "%s", job->errorText().latin1() ); return; } TQFile file( mFileName ); if ( !file.open( IO_WriteOnly ) ) { - qDebug( "Unable to create temporary file" ); + tqDebug( "Unable to create temporary file" ); return; } - qDebug( "Download successful" ); + tqDebug( "Download successful" ); file.writeBlock( mData ); file.close(); diff --git a/kode/kwsdl/schema/parser.cpp b/kode/kwsdl/schema/parser.cpp index 7ec3804f8..b981c77ed 100644 --- a/kode/kwsdl/schema/parser.cpp +++ b/kode/kwsdl/schema/parser.cpp @@ -603,7 +603,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element ) parseRestriction( childElement, st ); } else if ( name.localName() == "union" ) { st->setSubType( SimpleType::TypeUnion ); - qDebug( "simpletype::union not supported" ); + tqDebug( "simpletype::union not supported" ); } else if ( name.localName() == "list" ) { st->setSubType( SimpleType::TypeList ); if ( childElement.hasAttribute( "itemType" ) ) { @@ -627,7 +627,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element ) void Parser::parseRestriction( const TQDomElement &element, SimpleType *st ) { if ( st->baseType() == 0 ) - qDebug( "<restriction>:unkown BaseType" ); + tqDebug( "<restriction>:unkown BaseType" ); TQDomNode node = element.firstChild(); while ( !node.isNull() ) { @@ -635,7 +635,7 @@ void Parser::parseRestriction( const TQDomElement &element, SimpleType *st ) if ( !childElement.isNull() ) { if ( !st->isValidFacet( childElement.tagName() ) ) { - qDebug( "<restriction>: %s is not a valid facet for the simple type", childElement.tagName().latin1() ); + tqDebug( "<restriction>: %s is not a valid facet for the simple type", childElement.tagName().latin1() ); continue; } @@ -651,7 +651,7 @@ void Parser::parseComplexContent( const TQDomElement &element, ComplexType *ct ) QualifiedName typeName; if ( element.attribute( "mixed" ) == "true" ) { - qDebug( "<complexContent>: No support for mixed=true" ); + tqDebug( "<complexContent>: No support for mixed=true" ); return; } @@ -737,7 +737,7 @@ void Parser::parseSimpleContent( const TQDomElement &element, ComplexType *ct ) parseRestriction( childElement, st ); int typeId = mTypesTable.addType( st ); if ( typeId == 0 ) { - qDebug( "Could not add type in types table" ); + tqDebug( "Could not add type in types table" ); return; } @@ -852,7 +852,7 @@ void Parser::resolveForwardElementRefs() if ( e ) mTypesTable.resolveForwardElementRefs( (*it).localName(), *e ); else - qDebug( "Could not resolve element reference %s ", (*it).localName().latin1() ); + tqDebug( "Could not resolve element reference %s ", (*it).localName().latin1() ); } } @@ -868,7 +868,7 @@ void Parser::resolveForwardAttributeRefs() if ( a ) mTypesTable.resolveForwardAttributeRefs( (*it).localName(), *a ); else - qDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() ); + tqDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() ); } } @@ -970,7 +970,7 @@ int Parser::attributeId( const QualifiedName &type ) const typeName.setNameSpace( typens = mNameSpace ); if ( typens != mNameSpace && typens != SchemaUri ) { - qDebug( "Namespace does not match" ); + tqDebug( "Namespace does not match" ); return -1; } @@ -1067,7 +1067,7 @@ void Parser::importSchema( const TQString &location ) if ( provider.get( schemaLocation, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to open file %s", file.name().latin1() ); + tqDebug( "Unable to open file %s", file.name().latin1() ); return; } @@ -1076,7 +1076,7 @@ void Parser::importSchema( const TQString &location ) int errorLine, errorColumn; bool ok = doc.setContent( &file, true, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() ); + tqDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() ); return; } @@ -1085,7 +1085,7 @@ void Parser::importSchema( const TQString &location ) TQDomElement schemaElement = nodes.item( 0 ).toElement(); parseSchemaTag( schemaElement ); } else { - qDebug( "No schema tag found in schema file" ); + tqDebug( "No schema tag found in schema file" ); } file.close(); diff --git a/kode/kwsdl/schema/simpletype.cpp b/kode/kwsdl/schema/simpletype.cpp index d5dcf2fd9..ffbf27a15 100644 --- a/kode/kwsdl/schema/simpletype.cpp +++ b/kode/kwsdl/schema/simpletype.cpp @@ -153,7 +153,7 @@ bool SimpleType::isAnonymous() const bool SimpleType::isValidFacet( const TQString &facet ) { if ( mBaseType == 0 ) { - qDebug( "isValidFacet:Unknown base type" ); + tqDebug( "isValidFacet:Unknown base type" ); return false; } @@ -205,7 +205,7 @@ void SimpleType::setFacetValue( const TQString &value ) else if ( value == "replace" ) mFacetValue.wsp = REPLACE; else { - qDebug( "Invalid facet value for whitespace" ); + tqDebug( "Invalid facet value for whitespace" ); return; } } else { |