equal
deleted
inserted
replaced
|
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 "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 __SM_STD_H__ |
|
17 #define __SM_STD_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 #include <asclisession.h> |
|
22 #include <asshdalarm.h> |
|
23 |
|
24 // User includes |
|
25 #include "timewmod.h" |
|
26 |
|
27 class CModelResponder : public CActive |
|
28 { |
|
29 public: |
|
30 void Start(); |
|
31 virtual void RunL(); |
|
32 virtual void DoStart()=0; |
|
33 virtual void DoCancel()=0; |
|
34 protected: |
|
35 CModelResponder(CModelBase &aModel,TInt aPriority); |
|
36 private: |
|
37 void NotifyModel(TInt aNotification); |
|
38 private: |
|
39 CModelBase *iModel; |
|
40 }; |
|
41 |
|
42 class CAlmModel; |
|
43 class CAlmResponder : public CModelResponder |
|
44 { |
|
45 public: |
|
46 CAlmResponder(RASCliSession& aSvr,CAlmModel& aModel,TInt aResponderPriority); |
|
47 public: |
|
48 virtual void DoStart(); |
|
49 virtual void DoCancel(); |
|
50 private: |
|
51 TAlarmId iAlarmId; |
|
52 RASCliSession* iAlmSvr; |
|
53 }; |
|
54 |
|
55 #endif |