equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 |
20 |
21 #include <coreapplicationuisdomainpskeys.h> |
21 #include <coreapplicationuisdomainpskeys.h> |
22 #include <ctsydomainpskeys.h> |
22 #include <ctsydomainpskeys.h> |
23 #include <PSVariables.h> // Property values |
23 #include <PSVariables.h> // Property values |
|
24 #include <apgwgnam.h> |
|
25 #include <coemain.h> |
|
26 #include <coedef.h> |
24 |
27 |
25 #include "vuicstate.h" |
28 #include "vuicstate.h" |
26 #include "vuicprecheckstate.h" |
29 #include "vuicprecheckstate.h" |
27 #include "vuiccontextcheckstate.h" |
30 #include "vuiccontextcheckstate.h" |
28 #include "vuicexitstate.h" |
31 #include "vuicexitstate.h" |
32 |
35 |
33 #include "vuicvoicerecogdialogimpl.h" |
36 #include "vuicvoicerecogdialogimpl.h" |
34 |
37 |
35 #include "rubydebug.h" |
38 #include "rubydebug.h" |
36 |
39 |
|
40 //fix for the error ECWG-7WDA9G |
|
41 const TUid KAknnfysrvUid = {0x10281ef2}; |
37 // ----------------------------------------------------------------------------- |
42 // ----------------------------------------------------------------------------- |
38 // CPrecheckState::NewL |
43 // CPrecheckState::NewL |
39 // Two-phased constructor. |
44 // Two-phased constructor. |
40 // ----------------------------------------------------------------------------- |
45 // ----------------------------------------------------------------------------- |
41 // |
46 // |
107 } |
112 } |
108 else |
113 else |
109 { |
114 { |
110 DataStorage().SetDeviceLockMode( EFalse ); |
115 DataStorage().SetDeviceLockMode( EFalse ); |
111 } |
116 } |
|
117 |
|
118 // Check if lockphone dialog is active |
|
119 if ( IsLockPhoneDialogL() ) |
|
120 { |
|
121 error = KErrGeneral; |
|
122 } |
112 |
123 |
113 // Check if phone or video call is currently active |
124 // Check if phone or video call is currently active |
114 TInt state = CheckCallState(); |
125 TInt state = CheckCallState(); |
115 if ( ( state != EPSCTsyCallStateNone && |
126 if ( ( state != EPSCTsyCallStateNone && |
116 state != EPSCTsyCallStateUninitialized && |
127 state != EPSCTsyCallStateUninitialized && |
191 RUBY_DEBUG0( "CPrecheckState::IsVideoCall EXIT" ); |
202 RUBY_DEBUG0( "CPrecheckState::IsVideoCall EXIT" ); |
192 |
203 |
193 return callType == EPSCTsyCallTypeH324Multimedia; |
204 return callType == EPSCTsyCallTypeH324Multimedia; |
194 } |
205 } |
195 |
206 |
|
207 // ----------------------------------------------------------------------------- |
|
208 // CPrecheckState::IsLockPhoneDialogL |
|
209 // ----------------------------------------------------------------------------- |
|
210 // |
|
211 TBool CPrecheckState::IsLockPhoneDialogL() |
|
212 { |
|
213 //fix for the error ECWG-7WDA9G,if we found the first windows is "lockphone" dialog we will terminate the App. |
|
214 TBool islock = EFalse; |
|
215 RWsSession &ws = CCoeEnv::Static()->WsSession(); |
|
216 TInt wgId = ws.GetFocusWindowGroup(); |
|
217 CApaWindowGroupName *WindowsGroupName = CApaWindowGroupName::NewL( ws, wgId ); |
|
218 if ( ( KAknnfysrvUid == WindowsGroupName->AppUid() ) && |
|
219 ( ws.GetWindowGroupOrdinalPriority( wgId ) >= ECoeWinPriorityAlwaysAtFront ) ) |
|
220 { |
|
221 islock = ETrue; |
|
222 } |
|
223 return islock; |
|
224 } |
196 |
225 |
197 // End of File |
226 // End of File |
198 |
227 |