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
@@ -33,21 +33,8 @@
#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;
@@ -69,15 +56,4 @@ KOGlobals::KOGlobals()
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;
- }
}
@@ -95,5 +71,5 @@ KConfig* KOGlobals::config()
KOGlobals::~KOGlobals()
{
- delete mAlarmClient;
+
}
@@ -103,9 +79,4 @@ const KCalendarSystem *KOGlobals::calendarSystem() const
}
-AlarmClient *KOGlobals::alarmClient() const
-{
- return mAlarmClient;
-}
-
void KOGlobals::fitDialogToScreen( QWidget *wid, bool force )
{