diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch) | |
tree | 0212ba6d2c749043134005a41f2bd0379619d40f /kode/kwsdl/converter.cpp | |
parent | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff) | |
download | tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/converter.cpp')
-rw-r--r-- | kode/kwsdl/converter.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kode/kwsdl/converter.cpp b/kode/kwsdl/converter.cpp index f8d258013..a858f5d46 100644 --- a/kode/kwsdl/converter.cpp +++ b/kode/kwsdl/converter.cpp @@ -218,13 +218,13 @@ void Converter::createSimpleTypeSerializer( const Schema::SimpleType *type ) KODE::Function marshal( "marshal", "void" ); marshal.setStatic( true ); marshal.addArgument( "TQDomDocument &doc" ); - marshal.addArgument( "TQDomElement &tqparent" ); + marshal.addArgument( "TQDomElement &parent" ); marshal.addArgument( "const TQString &name" ); marshal.addArgument( "const " + typeName + "* value" ); KODE::Function demarshal( "demarshal", "void" ); demarshal.setStatic( true ); - demarshal.addArgument( "const TQDomElement &tqparent" ); + demarshal.addArgument( "const TQDomElement &parent" ); demarshal.addArgument( typeName + "* value" ); KODE::Code marshalCode, demarshalCode, code; @@ -275,7 +275,7 @@ void Converter::createSimpleTypeSerializer( const Schema::SimpleType *type ) // marshal marshalCode += "TQDomElement root = doc.createElement( name );"; marshalCode += "root.setAttribute( \"xsi:type\", \"ns1:" + type->name() + "\" );"; - marshalCode += "tqparent.appendChild( root );"; + marshalCode += "parent.appendChild( root );"; marshalCode += "root.appendChild( doc.createTextNode( Serializer::marshalValue( value ) ) );"; // demarshal value @@ -294,23 +294,23 @@ void Converter::createSimpleTypeSerializer( const Schema::SimpleType *type ) demarshalValue.setBody( code ); // demarshal - demarshalCode += "Serializer::demarshalValue( tqparent.text(), value );"; + demarshalCode += "Serializer::demarshalValue( parent.text(), value );"; mSerializer.addFunction( marshalValue ); mSerializer.addFunction( demarshalValue ); } else if ( type->baseType() != Schema::XSDType::INVALID ) { marshalCode += "if ( value->value() ) {"; marshalCode.indent(); - marshalCode += "Serializer::marshal( doc, tqparent, name, value->value() );"; + marshalCode += "Serializer::marshal( doc, parent, name, value->value() );"; marshalCode.unindent(); marshalCode += "}"; - demarshalCode += "const TQString text = tqparent.text();"; + demarshalCode += "const TQString text = parent.text();"; demarshalCode.newLine(); demarshalCode += "if ( !text.isEmpty() ) {"; demarshalCode.indent(); demarshalCode += baseType + "* data = new " + baseType + ";"; - demarshalCode += "Serializer::demarshal( tqparent, value );"; + demarshalCode += "Serializer::demarshal( parent, value );"; demarshalCode += "value->setValue( data );"; demarshalCode.unindent(); demarshalCode += "}"; @@ -352,12 +352,12 @@ void Converter::createSimpleTypeSerializer( const Schema::SimpleType *type ) marshalCode += "}"; marshalCode.newLine(); marshalCode += "TQDomElement element = doc.createElement( name );"; - marshalCode += "tqparent.appendChild( element );"; + marshalCode += "parent.appendChild( element );"; marshalCode += "element.appendChild( doc.createTextNode( list.join( \" \" ) ) );"; marshalCode.unindent(); marshalCode += "}"; - demarshalCode += "const TQStringList list = TQStringList::split( \" \", tqparent.text(), false );"; + demarshalCode += "const TQStringList list = TQStringList::split( \" \", parent.text(), false );"; demarshalCode += "if ( !list.isEmpty() ) {"; demarshalCode.indent(); demarshalCode += "TQPtrList<" + listType + ">* entries = new TQPtrList<" + listType + ">;"; @@ -511,13 +511,13 @@ void Converter::createComplexTypeSerializer( const Schema::ComplexType *type ) KODE::Function marshal( "marshal", "void" ); marshal.setStatic( true ); marshal.addArgument( "TQDomDocument &doc" ); - marshal.addArgument( "TQDomElement &tqparent" ); + marshal.addArgument( "TQDomElement &parent" ); marshal.addArgument( "const TQString &name" ); marshal.addArgument( "const " + typeName + "* value" ); KODE::Function demarshal( "demarshal", "void" ); demarshal.setStatic( true ); - demarshal.addArgument( "const TQDomElement &tqparent" ); + demarshal.addArgument( "const TQDomElement &parent" ); demarshal.addArgument( typeName + "* value" ); KODE::Code marshalCode, demarshalCode, demarshalFinalCode; @@ -535,9 +535,9 @@ void Converter::createComplexTypeSerializer( const Schema::ComplexType *type ) marshalCode += "TQDomElement root = doc.createElement( name );"; marshalCode += "root.setAttribute( \"xsi:type\", \"ns1:" + typeName + "\" );"; - marshalCode += "tqparent.appendChild( root );"; + marshalCode += "parent.appendChild( root );"; - demarshalCode += "TQDomNode node = tqparent.firstChild();"; + demarshalCode += "TQDomNode node = parent.firstChild();"; demarshalCode += "while ( !node.isNull() ) {"; demarshalCode.indent(); demarshalCode += "TQDomElement element = node.toElement();"; @@ -568,7 +568,7 @@ void Converter::createComplexTypeSerializer( const Schema::ComplexType *type ) marshalCode += "element.setAttribute( \"xmlns:ns1\", \"http://schemas.xmlsoap.org/soap/encoding/\" );"; marshalCode += "element.setAttribute( \"xsi:type\", \"ns1:Array\" );"; marshalCode += "element.setAttribute( \"ns1:arrayType\", \"ns1:" + typeName + "[\" + TQString::number( list->count() ) + \"]\" );"; - marshalCode += "tqparent.appendChild( element );"; + marshalCode += "parent.appendChild( element );"; marshalCode.newLine(); marshalCode += "TQPtrListIterator<" + typeName + "> it( *list );"; marshalCode += "while ( it.current() != 0 ) {"; @@ -629,7 +629,7 @@ void Converter::createComplexTypeSerializer( const Schema::ComplexType *type ) marshalCode += "if ( value->" + mNameMapper.escape( lowerName ) + "() )"; marshalCode.indent(); - marshalCode += "tqparent.setAttribute( \"" + (*attrIt).name() + "\"," + marshalCode += "parent.setAttribute( \"" + (*attrIt).name() + "\"," "Serializer::marshalValue( value->" + mNameMapper.escape( lowerName ) + "() ) );"; marshalCode.newLine(); @@ -879,7 +879,7 @@ void Converter::createUtilClasses() marshal = KODE::Function( "marshal", "void" ); marshal.setStatic( true ); marshal.addArgument( "TQDomDocument &doc" ); - marshal.addArgument( "TQDomElement &tqparent" ); + marshal.addArgument( "TQDomElement &parent" ); marshal.addArgument( "const TQString &name" ); marshal.addArgument( "const " + entry.type + "* value" ); @@ -887,7 +887,7 @@ void Converter::createUtilClasses() code += "TQDomElement element = doc.createElement( name );"; code += "element.setAttribute( \"xsi:type\", \"" + entry.xsdType + "\" );"; code += "element.appendChild( doc.createTextNode( Serializer::marshalValue( value ) ) );"; - code += "tqparent.appendChild( element );"; + code += "parent.appendChild( element );"; marshal.setBody( code ); mSerializer.addFunction( marshal ); |