|
|
@ -623,7 +623,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
|
|
|
|
convertOldAim = true;
|
|
|
|
convertOldAim = true;
|
|
|
|
addressBookLabel = TQString::fromLatin1("aim");
|
|
|
|
addressBookLabel = TQString::fromLatin1("aim");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if( id == TQString::fromLatin1("ICTQProtocol") || id == TQString::fromLatin1("WPProtocol") || id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
else if( id == TQString::fromLatin1("ICQProtocol") || id == TQString::fromLatin1("WPProtocol") || id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
fieldCount = 1;
|
|
|
|
fieldCount = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -649,7 +649,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
|
|
|
|
// Do the actual conversion
|
|
|
|
// Do the actual conversion
|
|
|
|
if ( id == TQString::fromLatin1( "OscarProtocol" ) ||
|
|
|
|
if ( id == TQString::fromLatin1( "OscarProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "AIMProtocol" ) || id == TQString::fromLatin1( "IRCProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "AIMProtocol" ) || id == TQString::fromLatin1( "IRCProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "ICTQProtocol" ) || id == TQString::fromLatin1( "JabberProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "ICQProtocol" ) || id == TQString::fromLatin1( "JabberProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "SMSProtocol" ) || id == TQString::fromLatin1( "WPProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "SMSProtocol" ) || id == TQString::fromLatin1( "WPProtocol" ) ||
|
|
|
|
id == TQString::fromLatin1( "GaduProtocol" ) )
|
|
|
|
id == TQString::fromLatin1( "GaduProtocol" ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -670,7 +670,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
|
|
|
|
dataField = newList.createElement( TQString::fromLatin1( "plugin-data-field" ) );
|
|
|
|
dataField = newList.createElement( TQString::fromLatin1( "plugin-data-field" ) );
|
|
|
|
pluginData[ id ].appendChild( dataField );
|
|
|
|
pluginData[ id ].appendChild( dataField );
|
|
|
|
dataField.setAttribute( TQString::fromLatin1( "key" ), TQString::fromLatin1( "contactId" ) );
|
|
|
|
dataField.setAttribute( TQString::fromLatin1( "key" ), TQString::fromLatin1( "contactId" ) );
|
|
|
|
if( id == TQString::fromLatin1("ICTQProtocol") )
|
|
|
|
if( id == TQString::fromLatin1("ICQProtocol") )
|
|
|
|
dataField.appendChild( newList.createTextNode( icqData[ idx ] ) );
|
|
|
|
dataField.appendChild( newList.createTextNode( icqData[ idx ] ) );
|
|
|
|
else if( id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
else if( id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
dataField.appendChild( newList.createTextNode( gaduData[ idx ] ) );
|
|
|
|
dataField.appendChild( newList.createTextNode( gaduData[ idx ] ) );
|
|
|
@ -682,7 +682,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
|
|
|
|
dataField = newList.createElement( TQString::fromLatin1( "plugin-data-field" ) );
|
|
|
|
dataField = newList.createElement( TQString::fromLatin1( "plugin-data-field" ) );
|
|
|
|
pluginData[ id ].appendChild( dataField );
|
|
|
|
pluginData[ id ].appendChild( dataField );
|
|
|
|
dataField.setAttribute( TQString::fromLatin1( "key" ), TQString::fromLatin1( "displayName" ) );
|
|
|
|
dataField.setAttribute( TQString::fromLatin1( "key" ), TQString::fromLatin1( "displayName" ) );
|
|
|
|
if( convertOldAim || id == TQString::fromLatin1("ICTQProtocol") || id == TQString::fromLatin1("WPProtocol") || id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
if( convertOldAim || id == TQString::fromLatin1("ICQProtocol") || id == TQString::fromLatin1("WPProtocol") || id == TQString::fromLatin1("GaduProtocol") )
|
|
|
|
dataField.appendChild( newList.createTextNode( strList[ idx ] ) );
|
|
|
|
dataField.appendChild( newList.createTextNode( strList[ idx ] ) );
|
|
|
|
else if( id == TQString::fromLatin1("JabberProtocol") )
|
|
|
|
else if( id == TQString::fromLatin1("JabberProtocol") )
|
|
|
|
dataField.appendChild( newList.createTextNode( strList[ idx + 2 ] ) );
|
|
|
|
dataField.appendChild( newList.createTextNode( strList[ idx + 2 ] ) );
|
|
|
@ -727,7 +727,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
|
|
|
|
|
|
|
|
|
|
|
|
// AIM, IRC, Oscar and SMS didn't store address book fields up
|
|
|
|
// AIM, IRC, Oscar and SMS didn't store address book fields up
|
|
|
|
// to now, so create one
|
|
|
|
// to now, so create one
|
|
|
|
if( id != TQString::fromLatin1("ICTQProtocol") && id != TQString::fromLatin1("JabberProtocol") && id != TQString::fromLatin1("WPProtocol") && id != TQString::fromLatin1("GaduProtocol") )
|
|
|
|
if( id != TQString::fromLatin1("ICQProtocol") && id != TQString::fromLatin1("JabberProtocol") && id != TQString::fromLatin1("WPProtocol") && id != TQString::fromLatin1("GaduProtocol") )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQDomElement addressBookField = newList.createElement( TQString::fromLatin1( "address-book-field" ) );
|
|
|
|
TQDomElement addressBookField = newList.createElement( TQString::fromLatin1( "address-book-field" ) );
|
|
|
|
newMetaContact.appendChild( addressBookField );
|
|
|
|
newMetaContact.appendChild( addressBookField );
|
|
|
|