equal
deleted
inserted
replaced
87 switch( value ) |
87 switch( value ) |
88 { |
88 { |
89 case EKeyguardLocked: |
89 case EKeyguardLocked: |
90 case EKeyguardAutolockEmulation: |
90 case EKeyguardAutolockEmulation: |
91 ret = ETrue; |
91 ret = ETrue; |
|
92 break; |
92 case EKeyguardNotActive: |
93 case EKeyguardNotActive: |
93 default: |
94 default: |
94 ret = EFalse; |
95 ret = EFalse; |
95 } |
96 } |
96 } |
97 } |
117 { |
118 { |
118 switch( value ) |
119 switch( value ) |
119 { |
120 { |
120 case EKeyguardLocked: |
121 case EKeyguardLocked: |
121 ret = ETrue; |
122 ret = ETrue; |
|
123 break; |
122 case EKeyguardAutolockEmulation: |
124 case EKeyguardAutolockEmulation: |
123 case EKeyguardNotActive: |
125 case EKeyguardNotActive: |
124 default: |
126 default: |
125 ret = EFalse; |
127 ret = EFalse; |
126 } |
128 } |
255 #else |
257 #else |
256 return KErrNotSupported; |
258 return KErrNotSupported; |
257 #endif |
259 #endif |
258 } |
260 } |
259 |
261 |
|
262 // --------------------------------------------------------------------------- |
|
263 // Confirms that the server is running. |
|
264 // Returns KErrNone / Error |
|
265 // --------------------------------------------------------------------------- |
|
266 EXPORT_C TInt CKeyguardAccessApi::AutolockStatus( TInt aCommand, TInt aParam) |
|
267 { |
|
268 RDEBUG("aCommand", aCommand); |
|
269 RDEBUG("aParam", aParam); |
|
270 if ( iLockAccessExtension ) |
|
271 { |
|
272 return iLockAccessExtension->SendMessage( aCommand, aParam ); |
|
273 } |
|
274 else |
|
275 { |
|
276 return KErrNotFound; |
|
277 } |
|
278 } |
260 |
279 |
261 // End of File |
280 // End of File |