KCal Library
Go to the documentation of this file. 31 #include <kstandarddirs.h> 32 #include <kconfiggroup.h> 33 #include <QtCore/QCoreApplication> 38 class FreeBusyUrlStore::Private
46 qRemovePostRoutine(cleanupFreeBusyUrlStore);
50 static FreeBusyUrlStore *sSelf;
51 static void cleanupFreeBusyUrlStore()
57 FreeBusyUrlStore *FreeBusyUrlStore::Private::sSelf = 0;
60 FreeBusyUrlStore *FreeBusyUrlStore::self()
64 p.sSelf =
new FreeBusyUrlStore();
65 qAddPostRoutine( Private::cleanupFreeBusyUrlStore );
70 FreeBusyUrlStore::FreeBusyUrlStore() : d( new Private() )
73 KStandardDirs::locateLocal(
"data",
"korganizer/freebusyurls" );
74 d->mConfig =
new KConfig( configFile );
77 FreeBusyUrlStore::~FreeBusyUrlStore()
83 void FreeBusyUrlStore::writeUrl(
const QString &email,
const QString &url )
85 KConfigGroup group = d->mConfig->group( email );
86 group.writeEntry(
"url", url );
89 QString FreeBusyUrlStore::readUrl(
const QString &email )
91 KConfigGroup group = d->mConfig->group( email );
92 return group.readEntry(
"url" );
95 void FreeBusyUrlStore::sync()
This file is part of the API for handling calendar data and defines the FreeBusyUrlStore class...
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Fri Oct 19 2018 17:57:41 by
doxygen 1.8.13 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.