diff options
Diffstat (limited to 'kode')
25 files changed, 93 insertions, 93 deletions
diff --git a/kode/kwsdl/compiler.cpp b/kode/kwsdl/compiler.cpp index e3ccf4f8c..8811c7e43 100644 --- a/kode/kwsdl/compiler.cpp +++ b/kode/kwsdl/compiler.cpp @@ -70,7 +70,7 @@ void Compiler::download() if ( provider.get( mWSDLUrl, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to download schema file %s", mWSDLUrl.latin1() ); + tqDebug( "Unable to download schema file %s", mWSDLUrl.latin1() ); provider.cleanUp(); return; } @@ -79,7 +79,7 @@ void Compiler::download() int errorLine, errorCol; TQDomDocument doc; if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { - qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); + tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); return; } diff --git a/kode/kwsdl/kung/binaryinputfield.cpp b/kode/kwsdl/kung/binaryinputfield.cpp index 049736c16..ea7c17394 100644 --- a/kode/kwsdl/kung/binaryinputfield.cpp +++ b/kode/kwsdl/kung/binaryinputfield.cpp @@ -48,7 +48,7 @@ BinaryInputField::BinaryInputField( const TQString &name, const TQString &typeNa void BinaryInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/boolinputfield.cpp b/kode/kwsdl/kung/boolinputfield.cpp index e3eb3eef1..883112668 100644 --- a/kode/kwsdl/kung/boolinputfield.cpp +++ b/kode/kwsdl/kung/boolinputfield.cpp @@ -32,7 +32,7 @@ BoolInputField::BoolInputField( const TQString &name, const Schema::SimpleType * void BoolInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp index 7466029c7..c43f211dc 100644 --- a/kode/kwsdl/kung/complexbaseinputfield.cpp +++ b/kode/kwsdl/kung/complexbaseinputfield.cpp @@ -38,7 +38,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema bool isList = ((*elemIt).maxOccurs() == UNBOUNDED); InputField *field = InputFieldFactory::self()->createField( (*elemIt).name(), (*elemIt).typeName(), isList ); if ( !field ) { - qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } @@ -49,7 +49,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { InputField *field = InputFieldFactory::self()->createField( (*attrIt).name(), (*attrIt).typeName() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } @@ -59,7 +59,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema void ComplexBaseInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } @@ -74,7 +74,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element ) if ( !child.isNull() ) { InputField *field = childField( child.tagName() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() ); + tqDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() ); } else { field->setXMLData( child ); } @@ -92,7 +92,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element ) InputField *field = childField( attr.name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() ); + tqDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() ); } else { field->setData( attr.value() ); } @@ -108,7 +108,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare for ( elemIt = elements.begin(); elemIt != elements.end(); ++elemIt ) { InputField *field = childField( (*elemIt).name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: No child found" ); + tqDebug( "ComplexBaseInputField: No child found" ); } else { field->xmlData( document, element ); } @@ -119,7 +119,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { InputField *field = childField( (*attrIt).name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: No child found" ); + tqDebug( "ComplexBaseInputField: No child found" ); } else { element.setAttribute( field->name(), field->data() ); } diff --git a/kode/kwsdl/kung/dateinputfield.cpp b/kode/kwsdl/kung/dateinputfield.cpp index 56132a4eb..cb24670f8 100644 --- a/kode/kwsdl/kung/dateinputfield.cpp +++ b/kode/kwsdl/kung/dateinputfield.cpp @@ -32,7 +32,7 @@ DateInputField::DateInputField( const TQString &name, const Schema::SimpleType * void DateInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/dispatcher.cpp b/kode/kwsdl/kung/dispatcher.cpp index 9d2ecc239..58ac17d19 100644 --- a/kode/kwsdl/kung/dispatcher.cpp +++ b/kode/kwsdl/kung/dispatcher.cpp @@ -71,7 +71,7 @@ void Dispatcher::run() void Dispatcher::nextMessage() { if ( !mConversationManager ) { - qDebug( "No conversation manager set... aborting" ); + tqDebug( "No conversation manager set... aborting" ); return; } @@ -115,7 +115,7 @@ void Dispatcher::nextMessage() body.appendChild( method ); if ( mTransport ) { - qDebug( "%s", doc.toString( 2 ).latin1() ); + tqDebug( "%s", doc.toString( 2 ).latin1() ); mTransport->query( doc.toString( 2 ) ); } } else @@ -124,7 +124,7 @@ void Dispatcher::nextMessage() void Dispatcher::result( const TQString &xml ) { - qDebug( "Got data %s", xml.latin1() ); + tqDebug( "Got data %s", xml.latin1() ); KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage ); InputField *field = new PageInputField( message.name(), message ); diff --git a/kode/kwsdl/kung/doubleinputfield.cpp b/kode/kwsdl/kung/doubleinputfield.cpp index 78f73bcd6..39f227749 100644 --- a/kode/kwsdl/kung/doubleinputfield.cpp +++ b/kode/kwsdl/kung/doubleinputfield.cpp @@ -34,7 +34,7 @@ DoubleInputField::DoubleInputField( const TQString &name, const TQString &typeNa void DoubleInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/enuminputfield.cpp b/kode/kwsdl/kung/enuminputfield.cpp index f290803b6..30c116700 100644 --- a/kode/kwsdl/kung/enuminputfield.cpp +++ b/kode/kwsdl/kung/enuminputfield.cpp @@ -36,7 +36,7 @@ EnumInputField::EnumInputField( const TQString &name, const Schema::SimpleType * void EnumInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/inputfieldfactory.cpp b/kode/kwsdl/kung/inputfieldfactory.cpp index 42905aee3..8359eef67 100644 --- a/kode/kwsdl/kung/inputfieldfactory.cpp +++ b/kode/kwsdl/kung/inputfieldfactory.cpp @@ -109,7 +109,7 @@ InputField *InputFieldFactory::createBasicField( const TQString &name, const TQS } else if ( typeName == "base64Binary" ) { return new BinaryInputField( name, typeName, type ); } else { - qDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() ); + tqDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() ); return 0; } } diff --git a/kode/kwsdl/kung/integerinputfield.cpp b/kode/kwsdl/kung/integerinputfield.cpp index 022ec0d84..76d48cd5a 100644 --- a/kode/kwsdl/kung/integerinputfield.cpp +++ b/kode/kwsdl/kung/integerinputfield.cpp @@ -36,7 +36,7 @@ IntegerInputField::IntegerInputField( const TQString &name, const TQString &type void IntegerInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp index 6bc1d8240..4a6921c07 100644 --- a/kode/kwsdl/kung/listinputfield.cpp +++ b/kode/kwsdl/kung/listinputfield.cpp @@ -55,7 +55,7 @@ void ListInputField::setXMLData( const TQDomElement &element ) field->setXMLData( child ); appendChild( field ); } else - qDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() ); + tqDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() ); } node = node.nextSibling(); @@ -131,7 +131,7 @@ void ListWidget::add() { InputField *field = InputFieldFactory::self()->createField( mName, mType ); if ( !field ) { - qDebug( "ListInputField: Unable to create field of type %s", mType.latin1() ); + tqDebug( "ListInputField: Unable to create field of type %s", mType.latin1() ); return; } diff --git a/kode/kwsdl/kung/loader.cpp b/kode/kwsdl/kung/loader.cpp index 8b0281ac8..273b23124 100644 --- a/kode/kwsdl/kung/loader.cpp +++ b/kode/kwsdl/kung/loader.cpp @@ -53,7 +53,7 @@ void Loader::download() if ( provider.get( mWSDLUrl, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() ); + tqDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() ); provider.cleanUp(); return; } @@ -62,7 +62,7 @@ void Loader::download() int errorLine, errorCol; TQDomDocument doc; if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { - qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); + tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); return; } diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp index 96a758c39..b1cf11e0b 100644 --- a/kode/kwsdl/kung/pageinputfield.cpp +++ b/kode/kwsdl/kung/pageinputfield.cpp @@ -35,7 +35,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess for ( it = parts.begin(); it != parts.end(); ++it ) { InputField *field = InputFieldFactory::self()->createField( (*it).name(), (*it).type() ); if ( !field ) { - qDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() ); + tqDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() ); } else { appendChild( field ); } @@ -45,7 +45,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess void PageInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } @@ -55,7 +55,7 @@ void PageInputField::setXMLData( const TQDomElement &element ) if ( !child.isNull() ) { InputField *field = childField( child.tagName() ); if ( !field ) { - qDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() ); + tqDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() ); } else { field->setXMLData( child ); } diff --git a/kode/kwsdl/kung/simplebaseinputfield.cpp b/kode/kwsdl/kung/simplebaseinputfield.cpp index 0198723cf..5bd4e36b2 100644 --- a/kode/kwsdl/kung/simplebaseinputfield.cpp +++ b/kode/kwsdl/kung/simplebaseinputfield.cpp @@ -31,31 +31,31 @@ SimpleBaseInputField::SimpleBaseInputField( const TQString &name, const Schema:: if ( type->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = InputFieldFactory::self()->createBasicField( name, type->baseTypeName(), type ); if ( !field ) { - qDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } void SimpleBaseInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = childField( element.tagName() ); if ( !field ) { - qDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() ); + tqDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() ); } else { field->setXMLData( element ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -64,12 +64,12 @@ void SimpleBaseInputField::xmlData( TQDomDocument &document, TQDomElement &paren if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->xmlData( document, parent ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -78,12 +78,12 @@ void SimpleBaseInputField::setData( const TQString &data ) if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->setData( data ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -92,12 +92,12 @@ TQString SimpleBaseInputField::data() const if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->data(); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } return TQString(); @@ -108,13 +108,13 @@ TQWidget *SimpleBaseInputField::createWidget( TQWidget *parent ) if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); return 0; } else { return field->createWidget( parent ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); return 0; } } diff --git a/kode/kwsdl/kung/stringinputfield.cpp b/kode/kwsdl/kung/stringinputfield.cpp index 390c5bc1b..9ea45029e 100644 --- a/kode/kwsdl/kung/stringinputfield.cpp +++ b/kode/kwsdl/kung/stringinputfield.cpp @@ -35,7 +35,7 @@ StringInputField::StringInputField( const TQString &name, const TQString &typeNa void StringInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/timeinputfield.cpp b/kode/kwsdl/kung/timeinputfield.cpp index dce73bdd4..38e1a2642 100644 --- a/kode/kwsdl/kung/timeinputfield.cpp +++ b/kode/kwsdl/kung/timeinputfield.cpp @@ -32,7 +32,7 @@ TimeInputField::TimeInputField( const TQString &name, const Schema::SimpleType * void TimeInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/transport.cpp b/kode/kwsdl/kung/transport.cpp index fd7e545e1..76f3acc82 100644 --- a/kode/kwsdl/kung/transport.cpp +++ b/kode/kwsdl/kung/transport.cpp @@ -25,7 +25,7 @@ Transport::Transport( const TQString &url ) { mUrl = url; - qDebug( "url=%s", url.latin1() ); + tqDebug( "url=%s", url.latin1() ); } void Transport::query( const TQString &xml ) diff --git a/kode/kwsdl/main.cpp b/kode/kwsdl/main.cpp index aff51ec4d..192ce0828 100644 --- a/kode/kwsdl/main.cpp +++ b/kode/kwsdl/main.cpp @@ -55,7 +55,7 @@ int main( int argc, char **argv ) KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if ( args->count() < 1 || args->count() > 1 ) { - qDebug( "Invalid arguments, try --help." ); + tqDebug( "Invalid arguments, try --help." ); return 1; } 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 { diff --git a/kode/kwsdl/tests/google/googlesearch.cc b/kode/kwsdl/tests/google/googlesearch.cc index d60c04172..690b9a11d 100644 --- a/kode/kwsdl/tests/google/googlesearch.cc +++ b/kode/kwsdl/tests/google/googlesearch.cc @@ -60,33 +60,33 @@ void GoogleSearch::googleSearch( const TQString &query, int start, int maxResult void GoogleSearch::cachedPageResult( TQByteArray *array ) { - qDebug( "--------------- Cached Page Results ---------------------" ); - qDebug( "%s", array->data() ); - qDebug( "---------------------------------------------------------" ); + tqDebug( "--------------- Cached Page Results ---------------------" ); + tqDebug( "%s", array->data() ); + tqDebug( "---------------------------------------------------------" ); delete array; } void GoogleSearch::spellingSuggestionResult( TQString *word ) { - qDebug( "--------------- Spelling Suggestion ---------------------" ); - qDebug( "%s", word->latin1() ); - qDebug( "---------------------------------------------------------" ); + tqDebug( "--------------- Spelling Suggestion ---------------------" ); + tqDebug( "%s", word->latin1() ); + tqDebug( "---------------------------------------------------------" ); delete word; } void GoogleSearch::googleSearchResult( GoogleSearchResult *result ) { - qDebug( "--------------------- Search Results ---------------------" ); + tqDebug( "--------------------- Search Results ---------------------" ); ResultElementArray *array = result->resultElements(); TQPtrList<ResultElement> *list = array->items(); TQPtrListIterator<ResultElement> it( *list ); while ( it.current() != 0 ) { - qDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() ); + tqDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() ); ++it; } - qDebug( "---------------------------------------------------------" ); + tqDebug( "---------------------------------------------------------" ); delete result; } diff --git a/kode/kwsdl/tests/google/googlesearchservice.cpp b/kode/kwsdl/tests/google/googlesearchservice.cpp index e609249ee..d2e7c97e7 100644 --- a/kode/kwsdl/tests/google/googlesearchservice.cpp +++ b/kode/kwsdl/tests/google/googlesearchservice.cpp @@ -46,7 +46,7 @@ void GoogleSearchService::doGetCachedPage( TQString* key, TQString* url ) delete key; Serializer::marshal( doc, method, "url", url ); delete url; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoGetCachedPageTransport->query( doc.toString() ); } @@ -56,10 +56,10 @@ void GoogleSearchService::doGetCachedPageResponseSlot( const TQString &xml ) TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } @@ -92,7 +92,7 @@ void GoogleSearchService::doSpellingSuggestion( TQString* key, TQString* phrase delete key; Serializer::marshal( doc, method, "phrase", phrase ); delete phrase; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoSpellingSuggestionTransport->query( doc.toString() ); } @@ -102,10 +102,10 @@ void GoogleSearchService::doSpellingSuggestionResponseSlot( const TQString &xml TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } @@ -154,7 +154,7 @@ void GoogleSearchService::doGoogleSearch( TQString* key, TQString* q, int* start delete ie; Serializer::marshal( doc, method, "oe", oe ); delete oe; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoGoogleSearchTransport->query( doc.toString() ); } @@ -164,10 +164,10 @@ void GoogleSearchService::doGoogleSearchResponseSlot( const TQString &xml ) TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } diff --git a/kode/kwsdl/wscl/parser.cpp b/kode/kwsdl/wscl/parser.cpp index a21d05fe8..2294d9d7c 100644 --- a/kode/kwsdl/wscl/parser.cpp +++ b/kode/kwsdl/wscl/parser.cpp @@ -40,13 +40,13 @@ void Parser::parse( const TQString &xml ) int errorLine, errorColumn; bool ok = doc.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() ); + tqDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() ); return; } TQDomNodeList nodes = doc.elementsByTagName( "Conversation" ); if ( nodes.count() <= 0 ) { - qDebug( "No conversation tag found in wscl data" ); + tqDebug( "No conversation tag found in wscl data" ); return; } @@ -72,7 +72,7 @@ void Parser::parse( const TQString &xml ) TQDomElement interactionElement = interactionNode.toElement(); if ( !interactionElement.isNull() ) { if ( interactionElement.tagName() != "Interaction" ) { - qDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() ); + tqDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() ); continue; } @@ -90,7 +90,7 @@ void Parser::parse( const TQString &xml ) else if ( type == "Empty" ) interaction.setType( Interaction::Empty ); else - qDebug( "Unknown interaction type '%s'", type.latin1() ); + tqDebug( "Unknown interaction type '%s'", type.latin1() ); XMLDocument::List inputDocuments; XMLDocument::List outputDocuments; @@ -175,7 +175,7 @@ void Parser::parse( const TQString &xml ) TQDomElement transitionElement = transitionNode.toElement(); if ( !transitionElement.isNull() ) { if ( transitionElement.tagName() != "Transition" ) { - qDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() ); + tqDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() ); continue; } @@ -193,7 +193,7 @@ void Parser::parse( const TQString &xml ) else if ( tagName == "SourceInteractionCondition" ) transition.setSourceInteractionCondition( contentElement.attribute( "href" ) ); else - qDebug( "Unknown transition element %s", tagName.latin1() ); + tqDebug( "Unknown transition element %s", tagName.latin1() ); } contentNode = contentNode.nextSibling(); |