author | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
commit | b411ec2d8961d07c3e2e9aefc9e04322b7851859 (patch) (unidiff) | |
tree | 79e2a70f1ad32562456b0bfa03aa2b916095fbb0 /korganizer/koglobals.cpp | |
parent | 2d81c75c4ffb8f144ae58e90e68496500d07a19e (diff) | |
download | kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.zip kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.gz kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.bz2 |
qdebugcleanup
-rw-r--r-- | korganizer/koglobals.cpp | 31 |
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 @@ | |||
32 | 32 | ||
33 | #include <kcalendarsystem.h> | 33 | #include <kcalendarsystem.h> |
34 | 34 | ||
35 | #ifndef KORG_NOKALARMD | ||
36 | #include "kalarmdclient.h" | ||
37 | #endif | ||
38 | #include "simplealarmclient.h" | ||
39 | 35 | ||
40 | #include "koglobals.h" | 36 | #include "koglobals.h" |
41 | #include "koprefs.h" | 37 | #include "koprefs.h" |
42 | 38 | ||
43 | class NopAlarmClient : public AlarmClient | ||
44 | { | ||
45 | public: | ||
46 | void startDaemon() {} | ||
47 | bool setCalendars( const QStringList & ) { return false; } | ||
48 | bool addCalendar( const QString & ) { return false; } | ||
49 | bool removeCalendar( const QString & ) { return false; } | ||
50 | bool reloadCalendar( const QString & ) { return false; } | ||
51 | }; | ||
52 | 39 | ||
53 | KOGlobals *KOGlobals::mSelf = 0; | 40 | KOGlobals *KOGlobals::mSelf = 0; |
54 | 41 | ||
@@ -68,17 +55,6 @@ KOGlobals::KOGlobals() | |||
68 | cfg->setGroup("General"); | 55 | cfg->setGroup("General"); |
69 | mCalendarSystem = KGlobal::locale()->calendar(); | 56 | mCalendarSystem = KGlobal::locale()->calendar(); |
70 | 57 | ||
71 | cfg->setGroup("AlarmDaemon"); | ||
72 | QString alarmClient = cfg->readEntry( "Daemon", "kalarmd" ); | ||
73 | if ( alarmClient == "simple" ) { | ||
74 | mAlarmClient = new SimpleAlarmClient; | ||
75 | #ifndef KORG_NOKALARMD | ||
76 | } else if ( alarmClient == "kalarmd" ) { | ||
77 | mAlarmClient = new KalarmdClient; | ||
78 | #endif | ||
79 | } else { | ||
80 | mAlarmClient = new NopAlarmClient; | ||
81 | } | ||
82 | } | 58 | } |
83 | 59 | ||
84 | KConfig* KOGlobals::config() | 60 | KConfig* KOGlobals::config() |
@@ -94,7 +70,7 @@ KConfig* KOGlobals::config() | |||
94 | 70 | ||
95 | KOGlobals::~KOGlobals() | 71 | KOGlobals::~KOGlobals() |
96 | { | 72 | { |
97 | delete mAlarmClient; | 73 | |
98 | } | 74 | } |
99 | 75 | ||
100 | const KCalendarSystem *KOGlobals::calendarSystem() const | 76 | const KCalendarSystem *KOGlobals::calendarSystem() const |
@@ -102,11 +78,6 @@ const KCalendarSystem *KOGlobals::calendarSystem() const | |||
102 | return mCalendarSystem; | 78 | return mCalendarSystem; |
103 | } | 79 | } |
104 | 80 | ||
105 | AlarmClient *KOGlobals::alarmClient() const | ||
106 | { | ||
107 | return mAlarmClient; | ||
108 | } | ||
109 | |||
110 | void KOGlobals::fitDialogToScreen( QWidget *wid, bool force ) | 81 | void KOGlobals::fitDialogToScreen( QWidget *wid, bool force ) |
111 | { | 82 | { |
112 | bool resized = false; | 83 | bool resized = false; |