|
1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : strtsimstatusmgr.h |
|
16 * Part of : System Startup / Starter |
|
17 * Interface : None |
|
18 * Declaration of TStrtSimStatusMgr class. |
|
19 * Version : %version: ou1s60rt#7 % |
|
20 * This material, including documentation and any related computer |
|
21 * programs, is protected by copyright controlled by Nokia. All |
|
22 * rights are reserved. Copying, including reproducing, storing, |
|
23 * adapting or translating, any or all of this material requires the |
|
24 * prior written consent of Nokia. This material also contains |
|
25 * confidential information which may not be disclosed to others |
|
26 * without the prior written consent of Nokia. |
|
27 * Template version: 4.0 |
|
28 * Nokia Core OS * |
|
29 * |
|
30 */ |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 /** |
|
36 @file |
|
37 @internalComponent |
|
38 @released |
|
39 */ |
|
40 |
|
41 #ifndef __CSIMSTATUSPOLICY_H__ |
|
42 #define __CSIMSTATUSPOLICY_H__ |
|
43 |
|
44 #include <ssm/ssmswppolicy.h> |
|
45 #include <e32property.h> |
|
46 |
|
47 |
|
48 NONSHARABLE_CLASS(CSimStatuspolicy) : public CBase, public MSsmSwpPolicy |
|
49 { |
|
50 public: |
|
51 IMPORT_C static MSsmSwpPolicy* NewL(); |
|
52 |
|
53 //from MSsmSwpPolicy |
|
54 void ConstructL(); |
|
55 void Initialize(TRequestStatus& aStatus); |
|
56 void InitializeCancel(); |
|
57 void Release(); |
|
58 TResponse TransitionAllowed(const TSsmSwp& aSwp, const RMessagePtr2& aMessage); |
|
59 void PrepareCommandList(const TSsmSwp& aSwp, TRequestStatus& aStatus); |
|
60 void PrepareCommandListCancel(); |
|
61 CSsmCommandList* CommandList(); |
|
62 void HandleCleReturnValue(const TSsmSwp& aSwp, TInt aError, TInt aSeverity, TRequestStatus& aStatus); |
|
63 void HandleCleReturnValueCancel(); |
|
64 |
|
65 private: |
|
66 //from CBase |
|
67 CSimStatuspolicy(); |
|
68 ~CSimStatuspolicy(); |
|
69 |
|
70 void DoPrepareCommandListL(const TSsmSwp& aSwp); |
|
71 MSsmSwpPolicy::TResponse IsSimReadableTransitionAllowed(); |
|
72 MSsmSwpPolicy::TResponse IsSimUsableTransitionAllowed(); |
|
73 MSsmSwpPolicy::TResponse IsSimNotSupportedTransitionAllowed(); |
|
74 MSsmSwpPolicy::TResponse IsSimRemovedTransitionAllowed(); |
|
75 |
|
76 private: |
|
77 CSsmCommandList* iCommandList; |
|
78 RProperty iProperty; |
|
79 |
|
80 /** Indicates whether the SIM has ever been readable since the device was started. */ |
|
81 TBool iSimHasBeenReadable; |
|
82 |
|
83 /** Indicates whether the SIM has ever been usable since the device was started. */ |
|
84 TBool iSimHasBeenUsable; |
|
85 }; |
|
86 |
|
87 #endif //__CSIMSTATUSPOLICY_H__ |