add: r->prefs()->setUser( SloxConfig::self()->user() ); r->prefs()->setPassword( SloxConfig::self()->password() );
context:     void apply()    {      kdDebug() << "Create SLOX Calendar Resource" << endl;      KCal::CalendarResourceManager m( "calendar" );      m.readConfig();      KURL url( "http://" + SloxConfig::self()->server() );      KCalResourceSlox *r = new KCalResourceSlox( url );      r->setResourceName( i18n("Openexchange Server") );      m.add( r );      m.writeConfig();    }