void Groupwise::get(const KURL &url) { kdDebug(7000) << "Groupwise::get()" << endl; kdDebug(7000) << " URL: " << url.url() << endl; #if 1 kdDebug(7000) << " Path: " << url.path() << endl; kdDebug(7000) << " Query: " << url.query() << endl; kdDebug(7000) << " Protocol: " << url.protocol() << endl; kdDebug(7000) << " Filename: " << url.filename() << endl; #endif mimeType("text/plain"); QString path = url.path(); debugMessage("Path: " + path); if(path.contains("/freebusy")) { getFreeBusy(url); } else if(path.contains("/calendar")) { getCalendar(url); } else if(path.contains("/addressbook")) { if(url.query().contains("update=true")) updateAddressbook(url); else getAddressbook(url); } else { QString error = i18n("Unknown path. Known paths are '/freebusy/', " "'/calendar/' and '/addressbook/'.") + QString(" path was %1").arg(url.url()); errorMessage(error); } kdDebug(7000) << "Groupwise::get() done" << endl; }
void CMainApp::setCurrentAddressbook(const CGUID& gid) { m_pPrefs->getPrefs().setSelectedABook(gid); m_pCurrentAddressbook = getAddressbook(gid); }