|
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 __TSERVERSESSIONENGINE_H__ |
|
17 #define __TSERVERSESSIONENGINE_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // User includes |
|
23 #include <asshddefs.h> |
|
24 #include "ASSrvSessionEngine.h" |
|
25 |
|
26 // Type definitions |
|
27 |
|
28 // Constants |
|
29 |
|
30 // Enumerations |
|
31 |
|
32 // Classes referenced |
|
33 class CASSrvServerWideData; |
|
34 //class MASSrvSession; |
|
35 |
|
36 |
|
37 // |
|
38 // ----> TASSrvAnyEventObserver (header) |
|
39 // |
|
40 class TASSrvAnyEventObserver : public MASSrvAnyEventObserver |
|
41 { |
|
42 // |
|
43 public: // FROM MASSRVANYEVENTOBSERVER |
|
44 // |
|
45 void MASSrvAnyEventHandleChange(TAlarmChangeEvent aEvent, TAlarmId aAlarmId); |
|
46 }; |
|
47 |
|
48 |
|
49 // |
|
50 // ----> TASSrvSession (header) |
|
51 // |
|
52 class TASSrvSession : public MASSrvSession |
|
53 { |
|
54 // |
|
55 public: // FROM MASSRVSESSION |
|
56 // |
|
57 TASSrvSessionId MASSrvSessionId() const; |
|
58 void MASSrvSessionFullName(TDes& aDes) const; |
|
59 }; |
|
60 |
|
61 |
|
62 // |
|
63 // ----> TASSrvAlarmTimerObserver (header) |
|
64 // |
|
65 class TASSrvAlarmTimerObserver : public MASSrvAlarmTimerObserver |
|
66 { |
|
67 // |
|
68 public: // FROM MASSRVALARMTIMEROBSERVER |
|
69 // |
|
70 void MATimerHandleAlarmExpired(TAlarmTimerEvent aEvent, TAlarmId aAlarmId); |
|
71 }; |
|
72 |
|
73 |
|
74 // |
|
75 // ----> CTestServerSessionEngine (header) |
|
76 // |
|
77 class CTestServerSessionEngine : public CBase |
|
78 { |
|
79 // |
|
80 public: // STATIC CONSTRUCT / DESTRUCT |
|
81 // |
|
82 static CTestServerSessionEngine* NewLC(); |
|
83 ~CTestServerSessionEngine(); |
|
84 |
|
85 // |
|
86 private: // INTERNAL CONSTRUCT |
|
87 // |
|
88 CTestServerSessionEngine(); |
|
89 void ConstructL(); |
|
90 |
|
91 // |
|
92 public: // ACCESS |
|
93 // |
|
94 inline CASSrvServerWideData& ServerWideData() const { return *iServerWideData; } |
|
95 inline CASSrvSessionEngine& Engine() const { return *iSessionEngine; } |
|
96 |
|
97 TAlarmId AddAlarmWithSpecificTimeL(TInt aSecondsFromNow); |
|
98 TAlarmId AddAlarmWithSpecificCategoryL(TAlarmCategory aCategory); |
|
99 void AwaitNotificationL(); |
|
100 void ClearAlarmStoreL(); |
|
101 |
|
102 |
|
103 // |
|
104 private: // INTERNAL |
|
105 // |
|
106 void StartAlarmServerL(); |
|
107 void StartAlarmAlertServerL(); |
|
108 |
|
109 // |
|
110 private: // MEMBER DATA |
|
111 // |
|
112 TASSrvAnyEventObserver* iChangeObserver; |
|
113 TASSrvSession* iSession; |
|
114 CASSrvServerWideData* iServerWideData; |
|
115 CASSrvSessionEngine* iSessionEngine; |
|
116 TASSrvAlarmTimerObserver* iTimerObserver; |
|
117 CActiveScheduler* iScheduler; |
|
118 TTime iHomeTime; |
|
119 }; |
|
120 |
|
121 |
|
122 #endif |