|
|
@ -514,7 +514,7 @@ bool Contact::loadAddressAttribute( TQDomElement& element )
|
|
|
|
|
|
|
|
|
|
|
|
if ( tagName == "type" )
|
|
|
|
if ( tagName == "type" )
|
|
|
|
address.type = e.text();
|
|
|
|
address.type = e.text();
|
|
|
|
else if ( tagName == "x-kde-type" )
|
|
|
|
else if ( tagName == "x-tde-type" )
|
|
|
|
address.kdeAddressType = e.text().toInt();
|
|
|
|
address.kdeAddressType = e.text().toInt();
|
|
|
|
else if ( tagName == "street" )
|
|
|
|
else if ( tagName == "street" )
|
|
|
|
address.street = e.text();
|
|
|
|
address.street = e.text();
|
|
|
@ -547,7 +547,7 @@ void Contact::saveAddressAttributes( TQDomElement& element ) const
|
|
|
|
element.appendChild( e );
|
|
|
|
element.appendChild( e );
|
|
|
|
const Address& a = *it;
|
|
|
|
const Address& a = *it;
|
|
|
|
writeString( e, "type", a.type );
|
|
|
|
writeString( e, "type", a.type );
|
|
|
|
writeString( e, "x-kde-type", TQString::number( a.kdeAddressType ) );
|
|
|
|
writeString( e, "x-tde-type", TQString::number( a.kdeAddressType ) );
|
|
|
|
if ( !a.street.isEmpty() )
|
|
|
|
if ( !a.street.isEmpty() )
|
|
|
|
writeString( e, "street", a.street );
|
|
|
|
writeString( e, "street", a.street );
|
|
|
|
if ( !a.pobox.isEmpty() )
|
|
|
|
if ( !a.pobox.isEmpty() )
|
|
|
|