KCal Library
Go to the documentation of this file.
31#include <kstandarddirs.h>
32#include <kconfiggroup.h>
33#include <QtCore/QCoreApplication>
38class FreeBusyUrlStore::Private
46 qRemovePostRoutine(cleanupFreeBusyUrlStore);
50 static FreeBusyUrlStore *sSelf;
51 static void cleanupFreeBusyUrlStore()
57FreeBusyUrlStore *FreeBusyUrlStore::Private::sSelf = 0;
60FreeBusyUrlStore *FreeBusyUrlStore::self()
64 p.sSelf =
new FreeBusyUrlStore();
65 qAddPostRoutine( Private::cleanupFreeBusyUrlStore );
70FreeBusyUrlStore::FreeBusyUrlStore() : d( new Private() )
73 KStandardDirs::locateLocal(
"data",
"korganizer/freebusyurls" );
74 d->mConfig =
new KConfig( configFile );
77FreeBusyUrlStore::~FreeBusyUrlStore()
83void FreeBusyUrlStore::writeUrl(
const QString &email,
const QString &url )
85 KConfigGroup group = d->mConfig->group( email );
86 group.writeEntry(
"url", url );
89QString FreeBusyUrlStore::readUrl(
const QString &email )
91 KConfigGroup group = d->mConfig->group( email );
92 return group.readEntry(
"url" );
95void 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-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.