rem: KRES::Manager<ResourceNotes>::Iterator it; for ( it = manager.begin(); it != manager.end(); ++it ) { if ( (*it)->identifier() == mIdentifier ) { KNotes::ResourceXMLRPC *resource = static_cast<KNotes::ResourceXMLRPC*>( *it );
add: QString url = createURL( EGroupwareConfig::self()->server(), EGroupwareConfig::self()->useSSLConnection(), EGroupwareConfig::self()->xmlrpc_location() );
context:     void apply()    {      kdDebug() << "Change eGroupware Notes Resource" << endl;      KRES::Manager<ResourceNotes> manager( "notes" );      manager.readConfig();      KRES::Manager<ResourceNotes>::Iterator it;      for ( it = manager.begin(); it != manager.end(); ++it ) {        if ( (*it)->identifier() == mIdentifier ) {          KNotes::ResourceXMLRPC *resource = static_cast<KNotes::ResourceXMLRPC*>( *it );          resource->prefs()->setUrl( createURL( EGroupwareConfig::self()->server(),                                     EGroupwareConfig::self()->useSSLConnection() ) );          resource->prefs()->setDomain( EGroupwareConfig::self()->domain() );          resource->prefs()->setUser( EGroupwareConfig::self()->user() );          resource->prefs()->setPassword( EGroupwareConfig::self()->password() );          manager.change( resource );          manager.writeConfig();          return;        }      }    }