75 * Enable keyguard. Only works if devicelock is not enabled. |
75 * Enable keyguard. Only works if devicelock is not enabled. |
76 * @param aWithNote should informing note be shown |
76 * @param aWithNote should informing note be shown |
77 * @return KErrNone if succeeded |
77 * @return KErrNone if succeeded |
78 * KErrAlreadyExists if already enabled |
78 * KErrAlreadyExists if already enabled |
79 * KErrPermissionDenied if devicelock is activated |
79 * KErrPermissionDenied if devicelock is activated |
|
80 * Other errors |
80 */ |
81 */ |
81 IMPORT_C TInt EnableKeyguard( TBool aWithNote ); |
82 IMPORT_C TInt EnableKeyguard( TBool aWithNote ); |
82 |
83 |
83 /** |
84 /** |
84 * Disable keyguard. Only works if devicelock is not enabled. |
85 * Disable keyguard. Only works if devicelock is not enabled. |
85 * @param aWithNote should informing note be shown |
86 * @param aWithNote should informing note be shown |
86 * @return KErrNone if succeeded |
87 * @return KErrNone if succeeded |
87 * KErrAlreadyExists if already disabled |
88 * KErrAlreadyExists if already disabled |
88 * KErrPermissionDenied if devicelock is activated |
89 * KErrPermissionDenied if devicelock is activated |
|
90 * Other errors |
89 */ |
91 */ |
90 IMPORT_C TInt DisableKeyguard( TBool aWithNote ); |
92 IMPORT_C TInt DisableKeyguard( TBool aWithNote ); |
91 |
93 |
92 /** |
94 /** |
93 * Offer to enable keyguard. Shows a query note to user. |
95 * Offer to enable keyguard. Shows a query note to user. |
94 * @return KErrNone if succeeded |
96 * @return KErrNone if succeeded |
95 * KErrPermissionDenied if keyguard/devicelock already activated |
97 * KErrPermissionDenied if keyguard/devicelock already activated |
|
98 * KErrCancel if user replies "No" |
|
99 * Other errors |
96 */ |
100 */ |
97 IMPORT_C TInt OfferKeyguard(); |
101 IMPORT_C TInt OfferKeyguard(); |
98 |
102 |
99 /** |
103 /** |
100 * Shows note informing that keys are locked. |
104 * Shows note informing that keys are locked. |
101 * Only works if keyguard is already enabled. |
105 * Only works if keyguard is already enabled. |
102 * @return KErrNone if succeeded ' |
106 * @return KErrNone if succeeded |
103 * KErrPermissionDenied if keyguard is not activated |
107 * KErrPermissionDenied if keyguard is not activated |
|
108 * Other errors |
104 */ |
109 */ |
105 IMPORT_C TInt ShowKeysLockedNote(); |
110 IMPORT_C TInt ShowKeysLockedNote(); |
106 |
111 |
107 |
112 |
108 /** |
113 /** |