|
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 |
|
59 // From MPhonePubSubObserver |
|
60 /** |
|
61 * This function is called when there is property value change. |
|
62 * @param aCategory Category of the property |
|
63 * @param aKey Property key that is changed |
|
64 * @param aValue New property value |
|
65 */ |
|
66 IMPORT_C virtual void HandlePropertyChangedL( const TUid& aCategory, |
|
67 const TUint aKey, const TInt aValue ); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * By default EPOC constructor is private. |
|
73 */ |
|
74 CPhoneStartupSimlockUi( MPhoneStateMachine* aStateMachine, |
|
75 MPhoneViewCommandHandle* aViewCommandHandle, TBool aPEReady ); |
|
76 |
|
77 /** |
|
78 * ConstructL() |
|
79 */ |
|
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * SimLock Observer. |
|
84 * Determines if the SimLock mode should be entered |
|
85 */ |
|
86 void EnterSimLockModeL(); |
|
87 |
|
88 /** |
|
89 * SimLock Observer. |
|
90 * Takes care of the SimLock Exit Scenario |
|
91 */ |
|
92 void ExitSimLockModeL(); |
|
93 |
|
94 /** |
|
95 * Handles startup of the phone application |
|
96 */ |
|
97 IMPORT_C virtual void HandlePhoneStartupL(); |
|
98 |
|
99 |
|
100 private: |
|
101 |
|
102 //To check if Simlock is active |
|
103 TBool iSimLockActive; |
|
104 |
|
105 // Ownded: idle object to create note. |
|
106 CIdle* iCreateNote; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // CPHONESTARTUPSIMLOCK_H |
|
111 // End of File |