1 /* |
|
2 * Copyright (c) 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: UI house hold private for PhoneUI |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PHONEUIHOUSEHOLDPRIVATE_H |
|
19 #define PHONEUIHOUSEHOLDPRIVATE_H |
|
20 |
|
21 #include <QtGui> |
|
22 #include <pevirtualengine.h> |
|
23 #include "mphonepubsubobserver.h" |
|
24 #include "cphonerecoverysystem.h" |
|
25 |
|
26 class MPEPhoneModel; |
|
27 class CPhoneUIController; |
|
28 class CPhoneQwertyHandler; |
|
29 class HbMainWindow; |
|
30 class PhoneUIKeyEventAdapter; |
|
31 class PhoneUiCommandAdapter; |
|
32 class QtCall; |
|
33 class PhoneUIQtViewAdapter; |
|
34 |
|
35 class PhoneUiHouseHoldPrivate : |
|
36 private MPhonePubSubObserver |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 PhoneUiHouseHoldPrivate (HbMainWindow &window); |
|
42 |
|
43 ~PhoneUiHouseHoldPrivate (); |
|
44 |
|
45 /** |
|
46 * Performs startup signalling. |
|
47 * |
|
48 * Calls either idle or security signalling. |
|
49 */ |
|
50 static TInt DoStartupSignalL( TAny* aAny ); |
|
51 |
|
52 /** |
|
53 * Idle signalling. |
|
54 */ |
|
55 TInt DoStartupSignalIdleL(); |
|
56 |
|
57 /** |
|
58 * Security signalling. |
|
59 */ |
|
60 TInt DoStartupSignalSecurityL(); |
|
61 |
|
62 // From MPhonePubSubObserver |
|
63 /** |
|
64 * This function is called when there is property value change. |
|
65 * @param aCategory Category of the property |
|
66 * @param aKey Property key that is changed |
|
67 * @param aValue New property value |
|
68 */ |
|
69 void HandlePropertyChangedL( |
|
70 const TUid& aCategory, |
|
71 const TUint aKey, |
|
72 const TInt aValue ); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Constructor |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 private: |
|
82 // Startup states. |
|
83 // EPhoneStartupInitial - Initial state. |
|
84 // EPhoneStartedUp - Phone application is ready. |
|
85 // EPhoneIdleStartedUp - Idle application is ready. |
|
86 enum |
|
87 { |
|
88 EPhoneStartupInitial = 0x00000001, |
|
89 EPhoneStartedUp = 0x00000002, |
|
90 EPhoneIdleStartedUp = 0x00000004 |
|
91 }; |
|
92 |
|
93 |
|
94 // Application (Phone and Idle) startup status. |
|
95 TInt iAppsReady; |
|
96 |
|
97 // Recovery id for startup signalling. |
|
98 TRecoveryId iStartupSignalRecoveryId; |
|
99 |
|
100 //Boolean flag. ETrue iff we have reached light idle |
|
101 TBool iLightIdleReached; |
|
102 |
|
103 //Indicates whether onscreen dialer is defined |
|
104 TBool iOnScreenDialer; |
|
105 |
|
106 CPhoneQwertyHandler* iQwertyHandler; |
|
107 |
|
108 CPhoneUIController* iPhoneUIController; |
|
109 |
|
110 HbMainWindow &m_window; |
|
111 |
|
112 PhoneUIKeyEventAdapter* iKeyEventAdapter; |
|
113 |
|
114 PhoneUiCommandAdapter* iCommandAdapter; |
|
115 |
|
116 PhoneUIQtViewAdapter* iViewAdapter; |
|
117 |
|
118 //List for translators |
|
119 QList<QTranslator*> m_translators; |
|
120 |
|
121 }; |
|
122 |
|
123 #endif |
|