|
1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __SM_STD_H__ |
|
17 #define __SM_STD_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 #include <t32wld.h> |
|
22 #include <asclisession.h> |
|
23 #include <asshdalarm.h> |
|
24 |
|
25 // User includes |
|
26 #include "timewmod.h" |
|
27 |
|
28 class CModelResponder : public CActive |
|
29 { |
|
30 public: |
|
31 void Start(); |
|
32 virtual void RunL(); |
|
33 virtual void DoStart()=0; |
|
34 virtual void DoCancel()=0; |
|
35 protected: |
|
36 CModelResponder(CModelBase &aModel,TInt aPriority); |
|
37 private: |
|
38 void NotifyModel(TInt aNotification); |
|
39 private: |
|
40 CModelBase *iModel; |
|
41 }; |
|
42 |
|
43 class CAlmModel; |
|
44 class CAlmResponder : public CModelResponder |
|
45 { |
|
46 public: |
|
47 CAlmResponder(RASCliSession& aSvr,CAlmModel& aModel,TInt aResponderPriority); |
|
48 public: |
|
49 virtual void DoStart(); |
|
50 virtual void DoCancel(); |
|
51 private: |
|
52 TAlarmId iAlarmId; |
|
53 RASCliSession* iAlmSvr; |
|
54 }; |
|
55 |
|
56 class CWldModel; |
|
57 class CWldResponder : public CModelResponder |
|
58 { |
|
59 public: |
|
60 CWldResponder(RWorldServer& aSvr,CWldModel& aModel,TInt aResponderPriority); |
|
61 public: |
|
62 virtual void DoStart(); |
|
63 virtual void DoCancel(); |
|
64 protected: |
|
65 RWorldServer* iWldSvr; |
|
66 }; |
|
67 |
|
68 #endif |