|
1 // Copyright (c) 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 /** |
|
17 @file |
|
18 @publishedPartner |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef __RFSTATUSSWPPOLICY_H__ |
|
23 #define __RFSTATUSPSWPOLICY_H__ |
|
24 |
|
25 #include <f32file.h> |
|
26 #include <ssm/ssmswppolicy.h> |
|
27 #include <ssm/ssmconditionalcallback.h> |
|
28 |
|
29 class CSsmCommandListResourceReader; |
|
30 |
|
31 NONSHARABLE_CLASS(CRFStatusSwPPolicy ) : public CBase, public MSsmSwpPolicy, public MSsmConditionalCallback |
|
32 { |
|
33 public: |
|
34 IMPORT_C static MSsmSwpPolicy* NewL(); |
|
35 |
|
36 //from MSsmSwpPolicy |
|
37 void Initialize(TRequestStatus& aStatus); |
|
38 void InitializeCancel(); |
|
39 void Release(); |
|
40 TResponse TransitionAllowed(const TSsmSwp& aSwp, const RMessagePtr2& aMessage); |
|
41 void PrepareCommandList(const TSsmSwp& aSwp, TRequestStatus& aStatus); |
|
42 void PrepareCommandListCancel(); |
|
43 CSsmCommandList* CommandList(); |
|
44 void HandleCleReturnValue(const TSsmSwp& aSwp, TInt aError, TInt aSeverity, TRequestStatus& aStatus); |
|
45 void HandleCleReturnValueCancel(); |
|
46 |
|
47 //from MSsmConditionalCallback |
|
48 TBool ConditionalCommandAllowedL(CResourceFile& aResourceFile, TInt aResourceId); |
|
49 |
|
50 private: |
|
51 //from CBase |
|
52 CRFStatusSwPPolicy (); |
|
53 ~CRFStatusSwPPolicy (); |
|
54 void ConstructL(); |
|
55 |
|
56 private: |
|
57 RFs iFs; |
|
58 CSsmCommandListResourceReader* iCommandListResourceReader; |
|
59 }; |
|
60 |
|
61 #endif //__RFSTATUSSWPPOLICY_H__ |