summaryrefslogtreecommitdiffabout
path: root/korganizer/koglobals.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koglobals.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koglobals.cpp31
1 files changed, 1 insertions, 30 deletions
diff --git a/korganizer/koglobals.cpp b/korganizer/koglobals.cpp
index 8016034..9ece77f 100644
--- a/korganizer/koglobals.cpp
+++ b/korganizer/koglobals.cpp
@@ -32,23 +32,10 @@
#include <kcalendarsystem.h>
-#ifndef KORG_NOKALARMD
-#include "kalarmdclient.h"
-#endif
-#include "simplealarmclient.h"
#include "koglobals.h"
#include "koprefs.h"
-class NopAlarmClient : public AlarmClient
-{
- public:
- void startDaemon() {}
- bool setCalendars( const QStringList & ) { return false; }
- bool addCalendar( const QString & ) { return false; }
- bool removeCalendar( const QString & ) { return false; }
- bool reloadCalendar( const QString & ) { return false; }
-};
KOGlobals *KOGlobals::mSelf = 0;
@@ -68,17 +55,6 @@ KOGlobals::KOGlobals()
cfg->setGroup("General");
mCalendarSystem = KGlobal::locale()->calendar();
- cfg->setGroup("AlarmDaemon");
- QString alarmClient = cfg->readEntry( "Daemon", "kalarmd" );
- if ( alarmClient == "simple" ) {
- mAlarmClient = new SimpleAlarmClient;
-#ifndef KORG_NOKALARMD
- } else if ( alarmClient == "kalarmd" ) {
- mAlarmClient = new KalarmdClient;
-#endif
- } else {
- mAlarmClient = new NopAlarmClient;
- }
}
KConfig* KOGlobals::config()
@@ -94,7 +70,7 @@ KConfig* KOGlobals::config()
KOGlobals::~KOGlobals()
{
- delete mAlarmClient;
+
}
const KCalendarSystem *KOGlobals::calendarSystem() const
@@ -102,11 +78,6 @@ const KCalendarSystem *KOGlobals::calendarSystem() const
return mCalendarSystem;
}
-AlarmClient *KOGlobals::alarmClient() const
-{
- return mAlarmClient;
-}
-
void KOGlobals::fitDialogToScreen( QWidget *wid, bool force )
{
bool resized = false;