|
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 __ASALTEVENTHANDLER_H__ |
|
17 #define __ASALTEVENTHANDLER_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // User includes |
|
23 #include <asshddefs.h> |
|
24 |
|
25 // Type definitions |
|
26 |
|
27 // Constants |
|
28 |
|
29 // Enumerations |
|
30 |
|
31 // Classes referenced |
|
32 class RASAltClientSession; |
|
33 class MASAltAlarmAlertObserver; |
|
34 class CASAltRequestQuietPeriodEnd; |
|
35 |
|
36 // |
|
37 // ----> CASAltEventHandler (header) |
|
38 // |
|
39 /** |
|
40 * Interprets the events back from the alarm alert server thread. |
|
41 */ |
|
42 class CASAltEventHandler : public CActive |
|
43 { |
|
44 // |
|
45 public: // STATIC CONSTRUCT / DESTRUCT |
|
46 // |
|
47 static CASAltEventHandler* NewL(RASAltClientSession& aSession, MASAltAlarmAlertObserver& aObserver); |
|
48 ~CASAltEventHandler(); |
|
49 |
|
50 // |
|
51 public: // ACCESS |
|
52 // |
|
53 |
|
54 void RequestEvents(); |
|
55 |
|
56 // |
|
57 private: // INTERNAL CONSTRUCT |
|
58 // |
|
59 CASAltEventHandler(RASAltClientSession& aSession, MASAltAlarmAlertObserver& aObserver); |
|
60 void ConstructL(); |
|
61 |
|
62 // |
|
63 private: // FROM CActive |
|
64 // |
|
65 |
|
66 void RunL(); |
|
67 |
|
68 void DoCancel(); |
|
69 |
|
70 // |
|
71 private: // INTERNAL |
|
72 // |
|
73 |
|
74 inline RASAltClientSession& Session() { return iSession; } |
|
75 |
|
76 inline MASAltAlarmAlertObserver& Observer() { return iObserver; } |
|
77 |
|
78 // |
|
79 private: // MEMBER DATA |
|
80 // |
|
81 |
|
82 RASAltClientSession& iSession; |
|
83 |
|
84 MASAltAlarmAlertObserver& iObserver; |
|
85 |
|
86 TTime iTimeValueFromAlarmAlertServer; |
|
87 |
|
88 CASAltRequestQuietPeriodEnd* iRequestQuietPeriodEnd; |
|
89 |
|
90 TAlarmId iAlarmId; |
|
91 }; |
|
92 |
|
93 #endif |