KCalCore Library
Go to the documentation of this file.
31 #include <KConfigGroup>
32 #include <KStandardDirs>
34 #include <QtCore/QCoreApplication>
36 using namespace KCalCore;
39 class FreeBusyUrlStore::Private
47 qRemovePostRoutine(cleanupFreeBusyUrlStore);
52 static void cleanupFreeBusyUrlStore()
66 qAddPostRoutine(Private::cleanupFreeBusyUrlStore);
71 FreeBusyUrlStore::FreeBusyUrlStore() : d(new Private())
74 KStandardDirs::locateLocal(
"data",
"korganizer/freebusyurls");
75 d->mConfig =
new KConfig(configFile);
78 FreeBusyUrlStore::~FreeBusyUrlStore()
84 void FreeBusyUrlStore::writeUrl(
const QString &email,
const QString &url)
86 KConfigGroup group = d->mConfig->group(email);
87 group.writeEntry(
"url", url);
90 QString FreeBusyUrlStore::readUrl(
const QString &email)
92 KConfigGroup group = d->mConfig->group(email);
93 return group.readEntry(
"url");
96 void FreeBusyUrlStore::sync()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Fri Jan 3 2014 22:20:29 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.