22#include "freebusyurlstore.h"
24#include <kstaticdeleter.h>
26#include <tdestandarddirs.h>
30static KStaticDeleter<FreeBusyUrlStore> selfDeleter;
32FreeBusyUrlStore *FreeBusyUrlStore::mSelf = 0;
34FreeBusyUrlStore *FreeBusyUrlStore::self()
37 selfDeleter.setObject( mSelf, new FreeBusyUrlStore() );
42FreeBusyUrlStore::FreeBusyUrlStore()
44 TQString configFile = locateLocal( "data", "korganizer/freebusyurls" );
45 mConfig = new TDEConfig( configFile );
48FreeBusyUrlStore::~FreeBusyUrlStore()
53void FreeBusyUrlStore::writeUrl( const TQString &email, const TQString &url )
55 mConfig->setGroup( email );
57 mConfig->writeEntry( "url", url );
60TQString FreeBusyUrlStore::readUrl( const TQString &email )
62 mConfig->setGroup( email );
64 return mConfig->readEntry( "url" );
67void FreeBusyUrlStore::sync()
Namespace KCal is for global classes, objects and/or functions in libkcal.
|