rem: KCal::GroupwisePrefs *prefs = static_cast<KCal::ResourceGroupwise *>( *it )->prefs(); if ( prefs->host() != GroupwiseConfig::self()->host() ||
add: KCal::GroupwisePrefsBase *prefs = static_cast<KCal::ResourceGroupwise *>( *it )->prefs(); if ( prefs->url() != serverUrl() ||
context:     void addCustomChanges( Change::List &changes )    {      ChangeConfig *c = new ChangeConfig;      c->file = "korganizerrc";      c->group = "FreeBusy";      c->name = "FreeBusyRetrieveUrl";      c->value = "groupwise://" + GroupwiseConfig::self()->host() +        "/freebusy/";      changes.append( c );      KCal::CalendarResourceManager m1( "calendar" );      m1.readConfig();      KCal::CalendarResourceManager::Iterator it;      for ( it = m1.begin(); it != m1.end(); ++it ) {        if ( (*it)->type() == "groupwise" ) break;      }      if ( it == m1.end() ) {        changes.append( new CreateGroupwiseKcalResource );      } else {        if ( (*it)->identifier() == GroupwiseConfig::kcalResource() ) {          KCal::GroupwisePrefs *prefs = static_cast<KCal::ResourceGroupwise *>( *it )->prefs();          if ( prefs->host() != GroupwiseConfig::self()->host() ||               prefs->port() != GroupwiseConfig::self()->port() ||               prefs->user() != GroupwiseConfig::user() ||               prefs->password() != GroupwiseConfig::password() ) {            changes.append( new UpdateGroupwiseKcalResource );          }        }      }      KRES::Manager<KABC::Resource> m2( "contact" );      m2.readConfig();      KRES::Manager<KABC::Resource>::Iterator it2;      for ( it2 = m2.begin(); it2 != m2.end(); ++it2 ) {        if ( (*it2)->type() == "groupwise" ) break;      }      if ( it2 == m2.end() ) {        changes.append( new CreateGroupwiseKabcResource );      } else {        if ( (*it2)->identifier() == GroupwiseConfig::kabcResource() ) {          KABC::GroupwisePrefs *prefs = static_cast<KABC::ResourceGroupwise *>( *it2 )->prefs();          if ( prefs->host() != GroupwiseConfig::self()->host() ||               prefs->port() != GroupwiseConfig::self()->port() ||               prefs->user() != GroupwiseConfig::user() ||               prefs->password() != GroupwiseConfig::password() ) {            changes.append( new UpdateGroupwiseKabcResource );          }        }      }    }