equal
deleted
inserted
replaced
23 #define CALENSERVER_H |
23 #define CALENSERVER_H |
24 |
24 |
25 #include <e32base.h> |
25 #include <e32base.h> |
26 #include <badesca.h> |
26 #include <badesca.h> |
27 #include <calenmulticaluids.hrh> |
27 #include <calenmulticaluids.hrh> |
|
28 #include <calfilechangenotification.h> // MCalFileChangeObserver |
28 |
29 |
29 // INCLUDES |
30 // INCLUDES |
30 #include "CalenSvrDef.h" |
31 #include "CalenSvrDef.h" |
31 #include "CalenSvrDBManager.h" |
32 #include "CalenSvrDBManager.h" |
32 |
33 |
39 class CCalenSvrBootManager; |
40 class CCalenSvrBootManager; |
40 class CCalenSvrDBManager; |
41 class CCalenSvrDBManager; |
41 //class CCalenSvrAlarmManager; |
42 //class CCalenSvrAlarmManager; |
42 class CCalenSvrMissedAlarmManager; |
43 class CCalenSvrMissedAlarmManager; |
43 class CCalCalendarInfo; |
44 class CCalCalendarInfo; |
|
45 class CCalFileChangeInfo; |
|
46 class CCalSession; |
44 |
47 |
45 // CLASS DEFINITION |
48 // CLASS DEFINITION |
46 NONSHARABLE_CLASS( CCalenServer ) : public CServer2 |
49 NONSHARABLE_CLASS( CCalenServer ) : public CServer2, |
|
50 public MCalFileChangeObserver |
47 { |
51 { |
48 public: |
52 public: |
49 static CCalenServer* NewL(); |
53 static CCalenServer* NewL(); |
50 virtual ~CCalenServer(); |
54 virtual ~CCalenServer(); |
51 |
55 |
58 /** |
62 /** |
59 * Returns the current message. |
63 * Returns the current message. |
60 * @return Current IPC message |
64 * @return Current IPC message |
61 */ |
65 */ |
62 const RMessage2 ServerMessage() const; |
66 const RMessage2 ServerMessage() const; |
|
67 |
|
68 public: |
|
69 /** |
|
70 * @brief From MCalFileChangeObserver |
|
71 * The callback that will recieve 1 or more file change notifications |
|
72 * |
|
73 * @param aCalendarInfoChangeEntries Holds the information about the |
|
74 * calendar info changes |
|
75 */ |
|
76 void CalendarInfoChangeNotificationL( |
|
77 RPointerArray<CCalFileChangeInfo>& aCalendarInfoChangeEntries); |
|
78 |
63 |
79 |
64 private: |
80 private: |
65 CCalenServer(TInt aPriority); |
81 CCalenServer(TInt aPriority); |
66 void ConstructL(); |
82 void ConstructL(); |
67 |
83 |
125 // Own. Handles boot time tasks in asynchronous fashion |
141 // Own. Handles boot time tasks in asynchronous fashion |
126 CCalenSvrBootManager* iBootManager; |
142 CCalenSvrBootManager* iBootManager; |
127 CCalenSvrDBManager* iDBManager; |
143 CCalenSvrDBManager* iDBManager; |
128 //CCalenSvrAlarmManager* iAlarmManager; |
144 //CCalenSvrAlarmManager* iAlarmManager; |
129 CCalenSvrMissedAlarmManager* iMissedAlarmHandler; |
145 CCalenSvrMissedAlarmManager* iMissedAlarmHandler; |
|
146 |
|
147 //session used for listening the file change notifications. |
|
148 CCalSession* iSession; |
130 |
149 |
131 }; |
150 }; |
132 |
151 |
133 #endif // CALENSERVER_H |
152 #endif // CALENSERVER_H |
134 |
153 |