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