equal
deleted
inserted
replaced
17 |
17 |
18 |
18 |
19 #ifndef CALENCONTROLLER_H |
19 #ifndef CALENCONTROLLER_H |
20 #define CALENCONTROLLER_H |
20 #define CALENCONTROLLER_H |
21 |
21 |
22 // INCLUDES |
22 // System includes |
23 #include <e32base.h> // CAsyncCallBack |
23 #include <e32base.h>// CAsyncCallBack |
24 #include <vwsdef.h> // TVwsViewId |
24 #include <vwsdef.h>// TVwsViewId |
25 #include <apadef.h> // TApaCommand |
25 #include <apadef.h>// TApaCommand |
26 #include <qglobal.h> // Q_DECL_EXPORT macro |
26 #include <qglobal.h>// Q_DECL_EXPORT macro |
27 #include <agendautil.h> |
27 #include <agendautil.h> |
28 #include <qobject> |
28 #include <qobject> |
29 #include "hb_calencommands.hrh" // Calendar commands |
29 |
30 #include "calennotificationhandler.h" // TCalenNotification |
30 // User includes |
|
31 #include "hb_calencommands.hrh"// Calendar commands |
|
32 #include "calennotificationhandler.h"// TCalenNotification |
31 #include "calenservices.h" |
33 #include "calenservices.h" |
32 #include "calenservicesfactory.h" // MCalenServicesFactory |
34 #include "calenservicesfactory.h" // MCalenServicesFactory |
33 |
35 |
34 |
36 |
35 #ifdef CALENCONTROLLER_DLL |
37 #ifdef CALENCONTROLLER_DLL |
98 |
100 |
99 /** |
101 /** |
100 * destructor |
102 * destructor |
101 */ |
103 */ |
102 ~CCalenController(); |
104 ~CCalenController(); |
103 |
105 |
|
106 signals: |
|
107 void appReady(); |
|
108 |
104 public: // New functions |
109 public: // New functions |
105 /** |
110 /** |
106 * Adds the passed command to the command queue. Command are handled |
111 * Adds the passed command to the command queue. Command are handled |
107 * asynchronously in HandleCommandL |
112 * asynchronously in HandleCommandL |
108 * @param aCommand Command that is passed in. |
113 * @param aCommand Command that is passed in. |
223 * Filters the events eg. Locale/language change events |
228 * Filters the events eg. Locale/language change events |
224 * @param event |
229 * @param event |
225 */ |
230 */ |
226 bool eventFilter(QObject *object, QEvent *event); |
231 bool eventFilter(QObject *object, QEvent *event); |
227 |
232 |
|
233 /** |
|
234 * Emits appReady signal. |
|
235 */ |
|
236 void emitAppReady(); |
|
237 |
228 private: // Construction and destruction |
238 private: // Construction and destruction |
229 |
239 |
230 /** |
240 /** |
231 * Sets the default context for today |
241 * Sets the default context for today |
232 */ |
242 */ |
234 /** |
244 /** |
235 * Stores the controller object in TLS |
245 * Stores the controller object in TLS |
236 */ |
246 */ |
237 void checkMultipleCreation(); |
247 void checkMultipleCreation(); |
238 |
248 |
|
249 private slots: |
|
250 void raiseWindow(); |
239 |
251 |
240 private: // Data |
252 private: // Data |
241 CalenViewManager* iViewManager;// Activate / deactivate views |
253 CalenViewManager* iViewManager;// Activate / deactivate views |
242 CalenContextImpl* mContext; |
254 CalenContextImpl* mContext; |
243 AgendaUtil *mAgendaUtil; // Agenda interface provider |
255 AgendaUtil *mAgendaUtil; // Agenda interface provider |