1 /* |
|
2 * Copyright (c) 2006 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: Monitor for device lock (autolock) |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVTENGDEVICELOCKMONITOR_H |
|
21 #define CVTENGDEVICELOCKMONITOR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MVtEngSettingPSObserver.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CVtEngPubSubsListener; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Monitor for autolock state. |
|
34 * |
|
35 * @lib videoteleng |
|
36 * @since 3.1 |
|
37 */ |
|
38 NONSHARABLE_CLASS( CVtEngDeviceLockMonitor ) : public CBase, public MVtEngSettingPSObserver |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 static CVtEngDeviceLockMonitor* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CVtEngDeviceLockMonitor(); |
|
48 |
|
49 public: // New functions |
|
50 |
|
51 /** |
|
52 * Sends event to UI of current autolock state |
|
53 */ |
|
54 void NotifyState() const; |
|
55 |
|
56 public: // From MVtEngSettingPSObserver |
|
57 |
|
58 /** |
|
59 * @see MVtEngSettingPSObserver::HandleNotifyPSL |
|
60 */ |
|
61 void HandleNotifyPSL( const TUid aUid, const TInt& aKey, |
|
62 const TRequestStatus& aStatus ); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * C++ constructor. |
|
67 */ |
|
68 CVtEngDeviceLockMonitor(); |
|
69 |
|
70 /** |
|
71 * 2nd phase constructor |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 |
|
77 // Listener for autolock state |
|
78 CVtEngPubSubsListener* iAutolockListener; |
|
79 }; |
|
80 |
|
81 #endif // CVTENGDEVICELOCKMONITOR_H |
|
82 |
|
83 // End of File |
|