38
38
namespace KCal { class Event; }
40
namespace Akonadi { class Collection; }
42
45
class ShellProcess;
43
46
class OrgKdeKSpeechInterface;
48
using namespace KAlarmCal;
46
51
class KAlarmApp : public KUniqueApplication
80
85
void notifyAudioPlaying(bool playing);
81
86
void setSpreadWindowsState(bool spread);
82
87
// Methods called indirectly by the DCOP interface
83
bool scheduleEvent(KAEvent::Action, const QString& text, const KDateTime&,
84
int lateCancel, int flags, const QColor& bg, const QColor& fg,
88
bool scheduleEvent(KAEvent::SubAction, const QString& text, const KDateTime&,
89
int lateCancel, KAEvent::Flags flags, const QColor& bg, const QColor& fg,
85
90
const QFont&, const QString& audioFile, float audioVolume,
86
91
int reminderMinutes, const KARecurrence& recurrence,
87
int repeatInterval, int repeatCount,
88
uint mailFromID = 0, const EmailAddressList& mailAddresses = EmailAddressList(),
92
int repeatInterval, int repeatCount,
94
uint mailFromID = 0, const KCalCore::Person::List& mailAddresses = KCalCore::Person::List(),
96
uint mailFromID = 0, const QList<KCal::Person>& mailAddresses = QList<KCal::Person>(),
89
98
const QString& mailSubject = QString(),
90
99
const QStringList& mailAttachments = QStringList());
91
100
bool dbusTriggerEvent(const QString& eventID) { return dbusHandleEvent(eventID, EVENT_TRIGGER); }
126
136
void slotMessageFontChanged(const QFont&);
127
137
void setArchivePurgeDays();
128
138
void slotPurge() { purge(mArchivedPurgeDays); }
140
void purgeAfterDelay();
129
142
void slotCommandExited(ShellProcess*);
130
143
void slotDBusServiceUnregistered(const QString& serviceName);
200
213
mutable OrgKdeKSpeechInterface* mKSpeech;// KSpeech D-Bus interface object
201
214
int mPendingQuitCode; // exit code for a pending quit
202
215
bool mPendingQuit; // quit once the DCOP command and shell command queues have been processed
216
bool mCancelRtcWake; // cancel RTC wake on quitting
203
217
bool mProcessingQueue; // a mDcopQueue entry is currently being processed
204
218
bool mNoSystemTray; // no system tray exists
205
219
bool mSessionClosingDown; // session manager is closing the application