@ -533,7 +533,7 @@ void GroupWiseAccount::reconcileOfflineChanges()
else
else
continue ;
continue ;
GWFolder * folder = : : tq q t_cast< GWFolder * > ( ( * instIt ) - > parent ( ) ) ;
GWFolder * folder = : : tq t_cast< GWFolder * > ( ( * instIt ) - > parent ( ) ) ;
if ( folder - > id = = ( unsigned int ) groupId . toInt ( ) )
if ( folder - > id = = ( unsigned int ) groupId . toInt ( ) )
{
{
found = true ;
found = true ;
@ -1117,7 +1117,7 @@ bool GroupWiseAccount::createContact( const TQString& contactId, Kopete::MetaCon
{
{
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < fld - > displayName < < endl ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < fld - > displayName < < endl ;
//FIXME - get rid of FolderItem & co
//FIXME - get rid of FolderItem & co
fi . parentId = : : tq q t_cast< GWFolder * > ( fld - > parent ( ) ) - > id ;
fi . parentId = : : tq t_cast< GWFolder * > ( fld - > parent ( ) ) - > id ;
fi . id = fld - > id ;
fi . id = fld - > id ;
fi . name = fld - > displayName ;
fi . name = fld - > displayName ;
}
}
@ -1227,7 +1227,7 @@ void GroupWiseAccount::deleteContact( GroupWiseContact * contact )
for ( ; it ! = instances . end ( ) ; + + it )
for ( ; it ! = instances . end ( ) ; + + it )
{
{
DeleteItemTask * dit = new DeleteItemTask ( client ( ) - > rootTask ( ) ) ;
DeleteItemTask * dit = new DeleteItemTask ( client ( ) - > rootTask ( ) ) ;
dit - > item ( : : tq q t_cast< GWFolder * > ( ( * it ) - > parent ( ) ) - > id , ( * it ) - > id ) ;
dit - > item ( : : tq t_cast< GWFolder * > ( ( * it ) - > parent ( ) ) - > id , ( * it ) - > id ) ;
TQObject : : connect ( dit , TQT_SIGNAL ( gotContactDeleted ( const ContactItem & ) ) , TQT_SLOT ( receiveContactDeleted ( const ContactItem & ) ) ) ;
TQObject : : connect ( dit , TQT_SIGNAL ( gotContactDeleted ( const ContactItem & ) ) , TQT_SLOT ( receiveContactDeleted ( const ContactItem & ) ) ) ;
dit - > go ( true ) ;
dit - > go ( true ) ;
}
}
@ -1499,7 +1499,7 @@ void GroupWiseAccount::syncContact( GroupWiseContact * contact )
{
{
GWContactInstanceList : : Iterator candidateInst = instIt ;
GWContactInstanceList : : Iterator candidateInst = instIt ;
+ + instIt ;
+ + instIt ;
GWFolder * folder = : : tq q t_cast< GWFolder * > ( ( * candidateInst ) - > parent ( ) ) ;
GWFolder * folder = : : tq t_cast< GWFolder * > ( ( * candidateInst ) - > parent ( ) ) ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - Looking for a match, MC grp ' "
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - Looking for a match, MC grp ' "
< < ( * candidateGrp ) - > displayName ( )
< < ( * candidateGrp ) - > displayName ( )
< < " ', GWFolder ' " < < folder - > displayName < < " ', objectId is " < < folder - > id < < endl ;
< < " ', GWFolder ' " < < folder - > displayName < < " ', objectId is " < < folder - > id < < endl ;
@ -1525,7 +1525,7 @@ void GroupWiseAccount::syncContact( GroupWiseContact * contact )
candidateGrp = grpIt ;
candidateGrp = grpIt ;
+ + grpIt ;
+ + grpIt ;
GWContactInstanceList : : Iterator instIt = instances . begin ( ) ;
GWContactInstanceList : : Iterator instIt = instances . begin ( ) ;
GWFolder * sourceFolder = : : tq q t_cast< GWFolder * > ( ( * instIt ) - > parent ( ) ) ;
GWFolder * sourceFolder = : : tq t_cast< GWFolder * > ( ( * instIt ) - > parent ( ) ) ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - moving contact instance from group ' " < < sourceFolder - > displayName < < " ' to group ' " < < ( * candidateGrp ) - > displayName ( ) < < " ' " < < endl ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - moving contact instance from group ' " < < sourceFolder - > displayName < < " ' to group ' " < < ( * candidateGrp ) - > displayName ( ) < < " ' " < < endl ;
// create contactItem parameter
// create contactItem parameter
@ -1604,7 +1604,7 @@ void GroupWiseAccount::syncContact( GroupWiseContact * contact )
{
{
GWContactInstanceList : : Iterator candidateInst = instIt ;
GWContactInstanceList : : Iterator candidateInst = instIt ;
+ + instIt ;
+ + instIt ;
GWFolder * folder = : : tq q t_cast< GWFolder * > ( ( * candidateInst ) - > parent ( ) ) ;
GWFolder * folder = : : tq t_cast< GWFolder * > ( ( * candidateInst ) - > parent ( ) ) ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - remove contact instance ' " < < ( * candidateInst ) - > id < < " ' in group ' " < < folder - > displayName < < " ' " < < endl ;
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) < < " - remove contact instance ' " < < ( * candidateInst ) - > id < < " ' in group ' " < < folder - > displayName < < " ' " < < endl ;
DeleteItemTask * dit = new DeleteItemTask ( client ( ) - > rootTask ( ) ) ;
DeleteItemTask * dit = new DeleteItemTask ( client ( ) - > rootTask ( ) ) ;
@ -1628,7 +1628,7 @@ void GroupWiseAccount::syncContact( GroupWiseContact * contact )
TQValueList < ContactItem > instancesToChange ;
TQValueList < ContactItem > instancesToChange ;
ContactItem instance ;
ContactItem instance ;
instance . id = ( * it ) - > id ;
instance . id = ( * it ) - > id ;
instance . parentId = : : tq q t_cast< GWFolder * > ( ( * it ) - > parent ( ) ) - > id ;
instance . parentId = : : tq t_cast< GWFolder * > ( ( * it ) - > parent ( ) ) - > id ;
instance . sequence = ( * it ) - > sequence ;
instance . sequence = ( * it ) - > sequence ;
instance . dn = contact - > dn ( ) ;
instance . dn = contact - > dn ( ) ;
instance . displayName = contact - > nickName ( ) ;
instance . displayName = contact - > nickName ( ) ;