|
1 /* |
|
2 * Copyright (c) 2005-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 * An interface for dynamic security mode state class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef MPHONESECURITYMODEOBSERVER_H |
|
20 #define MPHONESECURITYMODEOBSERVER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 // Forward declarations |
|
25 class MPhoneSecurityModeChangeObserver; |
|
26 |
|
27 /** |
|
28 * Interface for dynamic security mode state class. |
|
29 */ |
|
30 class MPhoneSecurityModeObserver |
|
31 { |
|
32 public : |
|
33 |
|
34 /** |
|
35 * Checks if autolock is enabled. |
|
36 * |
|
37 * @return ETrue if autolock is enabled. EFalse otherwise. |
|
38 */ |
|
39 virtual TBool IsAutolockEnabled() = 0; |
|
40 |
|
41 /** |
|
42 * Checks if security mode is enabled. |
|
43 * |
|
44 * @return ETrue if enabled, otherwise EFalse. |
|
45 */ |
|
46 virtual TBool IsSecurityMode() = 0; |
|
47 |
|
48 /** |
|
49 * Registers security mode state observer to observer state changes. |
|
50 * |
|
51 * @param aObserver Reference to state observer instance.. |
|
52 */ |
|
53 virtual void RegisterStateObserver( MPhoneSecurityModeChangeObserver& aObserver ) = 0; |
|
54 |
|
55 /** |
|
56 * Removes registered state observer. |
|
57 * |
|
58 * @param aObserver Reference to observer instance. |
|
59 */ |
|
60 virtual void RemoveStateObserver( MPhoneSecurityModeChangeObserver& aObserver ) = 0; |
|
61 |
|
62 /** |
|
63 * Initializes dynamic security mode state observer. |
|
64 */ |
|
65 virtual void Initialize() = 0; |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 // End of file |