~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kalarm/kalarmapp.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
/** @file kalarmapp.h - the KAlarm application object */
25
25
 
26
 
#include "kaevent.h"
27
26
#include "kamail.h"
28
27
#include "preferences.h"
29
28
 
 
29
#include <kalarmcal/kaevent.h>
 
30
 
30
31
#include <kuniqueapplication.h>
31
 
#include <kurl.h>
32
32
 
33
33
#include <QPointer>
34
34
#include <QQueue>
36
36
 
37
37
class KDateTime;
38
38
namespace KCal { class Event; }
 
39
#ifdef USE_AKONADI
 
40
namespace Akonadi { class Collection; }
 
41
#endif
39
42
class DBusHandler;
40
43
class MainWindow;
41
44
class TrayWindow;
42
45
class ShellProcess;
43
46
class OrgKdeKSpeechInterface;
44
47
 
 
48
using namespace KAlarmCal;
 
49
 
45
50
 
46
51
class KAlarmApp : public KUniqueApplication
47
52
{
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,
 
93
#ifdef USE_AKONADI
 
94
                                         uint mailFromID = 0, const KCalCore::Person::List& mailAddresses = KCalCore::Person::List(),
 
95
#else
 
96
                                         uint mailFromID = 0, const QList<KCal::Person>& mailAddresses = QList<KCal::Person>(),
 
97
#endif
89
98
                                         const QString& mailSubject = QString(),
90
99
                                         const QStringList& mailAttachments = QStringList());
91
100
        bool               dbusTriggerEvent(const QString& eventID)   { return dbusHandleEvent(eventID, EVENT_TRIGGER); }
95
104
        void               processQueue();
96
105
        void               setAlarmsEnabled(bool);
97
106
#ifdef USE_AKONADI
 
107
        void               purgeNewArchivedDefault(const Akonadi::Collection&);
98
108
        void               atLoginEventAdded(const KAEvent&);
99
109
#endif
100
110
        void               stopAudio();
126
136
        void               slotMessageFontChanged(const QFont&);
127
137
        void               setArchivePurgeDays();
128
138
        void               slotPurge()                     { purge(mArchivedPurgeDays); }
 
139
#ifdef USE_AKONADI
 
140
        void               purgeAfterDelay();
 
141
#endif
129
142
        void               slotCommandExited(ShellProcess*);
130
143
        void               slotDBusServiceUnregistered(const QString& serviceName);
131
144
 
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