Ejemplo n.º 1
0
void ResourceKolab::doClose()
{
    KConfig config(configFile());
    config.setGroup(configGroupName);
    Kolab::ResourceMap::ConstIterator it;
    for(it = mSubResources.begin(); it != mSubResources.end(); ++it)
        config.writeEntry(it.key(), it.data().active());
}
Ejemplo n.º 2
0
bool ResourceKolab::load()
{
    // We get a fresh list of events, so clean out the old ones
    mCalendar.deleteAllEvents();
    mUidMap.clear();

    bool rc = true;
    Kolab::ResourceMap::ConstIterator itR;
    for(itR = mSubResources.begin(); itR != mSubResources.end(); ++itR)
    {
        if(!itR.data().active())
            // This subResource is disabled
            continue;

        QString mimetype = inlineMimeType;
        rc &= loadSubResource(itR.key(), mimetype);
        mimetype = attachmentMimeType;
        rc &= loadSubResource(itR.key(), mimetype);
    }

    return rc;
}