|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __ASSRVTIMEROBSERVER_H__ |
|
17 #define __ASSRVTIMEROBSERVER_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // User includes |
|
23 #include <asshddefs.h> |
|
24 |
|
25 // Classes referenced |
|
26 class CASSrvServerWideData; |
|
27 |
|
28 |
|
29 // |
|
30 // ----> MASSrvAlarmTimerObserver (header) |
|
31 // |
|
32 /** |
|
33 * An abstract class which all observers of the alarm timer must implement |
|
34 * in order to receive events |
|
35 */ |
|
36 class MASSrvAlarmTimerObserver |
|
37 { |
|
38 // |
|
39 public: // FROM MASSrvAlarmTimerObserver |
|
40 // |
|
41 |
|
42 /** |
|
43 * The alarm timer event |
|
44 */ |
|
45 enum TAlarmTimerEvent |
|
46 { |
|
47 /** |
|
48 * An alarm has expired |
|
49 */ |
|
50 EAlarmTimerEventAlarmExpired = 0, |
|
51 |
|
52 /** |
|
53 * The date/time has changed |
|
54 */ |
|
55 EAlarmTimerEventTimeOrDateChanged, |
|
56 |
|
57 /** |
|
58 * There was an error returned by CTimer::iStatus |
|
59 */ |
|
60 EAlarmTimerEventTimingError |
|
61 }; |
|
62 |
|
63 |
|
64 // |
|
65 public: // FROM MASSrvAlarmTimerObserver |
|
66 // |
|
67 |
|
68 /** |
|
69 * Handle the event |
|
70 */ |
|
71 virtual void MATimerHandleAlarmExpired(TAlarmTimerEvent aEvent, TAlarmId aAlarmId) = 0; |
|
72 }; |
|
73 |
|
74 #endif |