|
1 /* |
|
2 * Copyright (c) 2010 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 * GSM-specific single call state implementation. |
|
16 * |
|
17 */ |
|
18 #ifndef CPHONESTARTUPSIMLOCKUI_H |
|
19 #define CPHONESTARTUPSIMLOCKUI_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "cphonestatestartup.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 |
|
26 // CLASS DECLARATION |
|
27 /** |
|
28 * GSM-specific start up state implementation. |
|
29 */ |
|
30 class CPhoneStartupSimlockUi : public CPhoneStateStartup |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Destructor. |
|
36 */ |
|
37 virtual ~CPhoneStartupSimlockUi(); |
|
38 |
|
39 /** |
|
40 * Creates the Start up state class |
|
41 * @param aStateMachine: a state machine |
|
42 * @param aViewCommandHandle: handle to the PhoneUIView |
|
43 * @param aPEReady: true if Phone Engine already started |
|
44 * @return an instance of class CPhoneEmergency |
|
45 */ |
|
46 static CPhoneStartupSimlockUi* NewL( MPhoneStateMachine* aStateMachine, |
|
47 MPhoneViewCommandHandle* aViewCommandHandle, TBool aPEReady ); |
|
48 |
|
49 /** |
|
50 * A message handling function for Phone Engine messages |
|
51 * @param aMessage Message from Phone Engine |
|
52 * @param aCallId Call id the message concerns |
|
53 */ |
|
54 IMPORT_C void HandlePhoneEngineMessageL( |
|
55 const TInt aMessage, |
|
56 TInt aCallId ); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * By default EPOC constructor is private. |
|
62 */ |
|
63 CPhoneStartupSimlockUi( MPhoneStateMachine* aStateMachine, |
|
64 MPhoneViewCommandHandle* aViewCommandHandle, TBool aPEReady ); |
|
65 |
|
66 /** |
|
67 * ConstructL() |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 /** |
|
72 * SimLock Observer. |
|
73 * Determines if the SimLock mode should be entered |
|
74 */ |
|
75 void EnterSimLockModeL(); |
|
76 |
|
77 /** |
|
78 * SimLock Observer. |
|
79 * Takes care of the SimLock Exit Scenario |
|
80 */ |
|
81 void ExitSimLockModeL(); |
|
82 |
|
83 // From MPhonePubSubObserver |
|
84 /** |
|
85 * This function is called when there is property value change. |
|
86 * @param aCategory Category of the property |
|
87 * @param aKey Property key that is changed |
|
88 * @param aValue New property value |
|
89 */ |
|
90 IMPORT_C virtual void HandlePropertyChangedL( const TUid& aCategory, |
|
91 const TUint aKey, const TInt aValue ); |
|
92 |
|
93 /** |
|
94 * Handles startup of the phone application |
|
95 */ |
|
96 IMPORT_C virtual void HandlePhoneStartupL(); |
|
97 |
|
98 |
|
99 private: |
|
100 |
|
101 //To check if Simlock is active |
|
102 TBool iSimLockActive; |
|
103 |
|
104 // Ownded: idle object to create note. |
|
105 CIdle* iCreateNote; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // CPHONESTARTUPSIMLOCK_H |
|
110 // End of File |