author | Simon Howkins <simonh@symbian.org> |
Thu, 28 Oct 2010 13:23:18 +0100 | |
branch | RCL_3 |
changeset 88 | 9dfcaf1038dd |
parent 74 | 97232defd20e |
permissions | -rw-r--r-- |
66 | 1 |
/* |
2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: Notification interface for S60 Calendar customizations |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef CALENNOTIFICATIONHANDLER_H |
|
19 |
#define CALENNOTIFICATIONHANDLER_H |
|
20 |
||
21 |
/** |
|
22 |
* @enum TCalenNotification |
|
23 |
* |
|
24 |
* @brief Notification interface for S60 Calendar customizations |
|
25 |
*/ |
|
26 |
enum TCalenNotification |
|
27 |
{ |
|
28 |
ECalenNotifyAll = 0, // Receive all notifications |
|
29 |
ECalenNotifyEntryInstanceViewCreated, |
|
30 |
ECalenNotifyEntryInstanceViewCreationFailed, |
|
31 |
ECalenNotifyContextChanged, |
|
32 |
ECalenNotifyExternalDatabaseChanged, |
|
33 |
ECalenNotifyEntrySaved, |
|
34 |
ECalenNotifyEntryDeleted, |
|
35 |
ECalenNotifyMultipleEntriesDeleted, |
|
36 |
ECalenNotifyInstanceSaved, |
|
37 |
ECalenNotifyInstanceDeleted, |
|
38 |
ECalenNotifySystemTimeChanged, |
|
39 |
ECalenNotifySystemLocaleChanged, |
|
40 |
ECalenNotifyLostAlarms, |
|
41 |
ECalenNotifyAlarmStopped, |
|
42 |
ECalenNotifyAlarmSnoozed, |
|
74
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
66
diff
changeset
|
43 |
ECalenNotifyCalenLaunchedFromExtApp, |
66 | 44 |
ECalenNotifyCmdLineLaunch, |
45 |
ECalenNotifyAvkonViewSwitchLaunch, |
|
46 |
ECalenNotifySettingsChanged, |
|
47 |
ECalenNotifyViewCreationStarted, |
|
48 |
ECalenNotifyDialogClosed, |
|
49 |
ECalenNotifyCommandFailed, |
|
50 |
ECalenNotifyDeleteFailed, |
|
51 |
ECalenNotifyEntryClosed, |
|
52 |
ECalenNotifySettingsClosed, |
|
53 |
ECalenNotifySettingsCRepKeyChanged, |
|
54 |
ECalenNotifyPluginEnabledDisabled, |
|
55 |
ECalenNotifyEComRegistryChanged, |
|
56 |
ECalenNotifyResourceChanged, |
|
57 |
ECalenNotifyViewPopulationComplete, |
|
58 |
ECalenNotifyAppForegrounded, |
|
59 |
ECalenNotifyAppBackgrounded, |
|
60 |
ECalenNotifyMarkedEntryDeleted, |
|
61 |
ECalenNotifyCheckPluginUnloading, |
|
62 |
ECalenNotifyEntrySent, |
|
63 |
ECalenNotifyCancelDelete, |
|
64 |
ECalenNotifyDayViewClosed, |
|
65 |
ECalenNotifyWeekViewClosed, |
|
66 |
ECalenNotifyMapClosed, |
|
67 |
ECalenNotifyCancelMapLaunch, |
|
68 |
ECalenNotifyMissedAlarmViewClosed, |
|
69 |
ECalenNotifyMissedEventViewClosed, |
|
70 |
ECalenNotifyClearMissedAlarms, |
|
71 |
ECalenNotifyCalendarFieldChanged, |
|
72 |
ECalenNotifyCancelStatusUpdation, |
|
73 |
ECalenNotifyMarkedEntryCompleted, |
|
74 |
ECalenNotifyAttachmentAdded, |
|
75 |
ECalenNotifyAttachmentRemoved, |
|
76 |
ECalenNotifyAttachmentViewerClosed, |
|
77 |
ECalenNotifyDeleteInstanceView, |
|
78 |
ECalenNotifyRealExit, |
|
79 |
ECalenNotifyStopAlarm, |
|
80 |
ECalenNotifyCalendarInfoCreated, |
|
81 |
ECalenNotifyCalendarInfoUpdated, |
|
82 |
ECalenNotifyCalendarFileDeleted, |
|
83 |
ECalenNotifyEntrySendCancel, |
|
84 |
ECalenNotifyUserDefined1, |
|
85 |
ECalenNotifyUserDefined2, |
|
86 |
ECalenNotifyUserDefined3, |
|
87 |
ECalenNotifyUserDefined4, |
|
88 |
ECalenNotifyLast |
|
89 |
}; |
|
90 |
||
91 |
/** |
|
92 |
* @class MCalenNotificationHandler |
|
93 |
* @brief Class for handling calendar notifications. |
|
94 |
* Clients have to implement this class to recieve notifications |
|
95 |
*/ |
|
96 |
class MCalenNotificationHandler |
|
97 |
{ |
|
98 |
public: // New functions |
|
99 |
||
100 |
/** |
|
101 |
* @brief Handle notifications specified by aNotification |
|
102 |
* |
|
103 |
* @param aNotification Nofication to be handled |
|
104 |
*/ |
|
105 |
virtual void HandleNotification( const TCalenNotification aNotification ) = 0; |
|
106 |
}; |
|
107 |
||
108 |
#endif // CALENNOTIFICATIONHANDLER_H |
|
109 |
||
110 |
// End of file |