1 /* |
|
2 * Copyright (c) 2007 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: Publishes LockApp states to other applications |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __LOCKAPPSTATEPUBLISHER_H__ |
|
20 #define __LOCKAPPSTATEPUBLISHER_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include "lockappstateobserver.h" |
|
24 #include <e32property.h> |
|
25 |
|
26 /** |
|
27 * CLockAppStatePublisher class publishes lock state to external parties using P&S key. |
|
28 * |
|
29 * @lib lockapp |
|
30 * @since 5.0 |
|
31 * @author Joona Petrell |
|
32 * @author Tamas Koteles |
|
33 **/ |
|
34 class CLockAppStatePublisher : public CBase, public MLockAppStateObserver |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CLockAppStatePublisher* NewL( ); |
|
41 |
|
42 /** |
|
43 * C++ default constructor. |
|
44 */ |
|
45 CLockAppStatePublisher( ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CLockAppStatePublisher( ); |
|
51 private: |
|
52 |
|
53 /** |
|
54 * Second constructor that can fail (leave). |
|
55 */ |
|
56 void ConstructL( ); |
|
57 |
|
58 public: |
|
59 // from CLockAppStateObserver |
|
60 |
|
61 virtual void HandleLockStatusChangedL( TLockStatus aLockStatus ); |
|
62 |
|
63 private: |
|
64 |
|
65 // stores locking state property |
|
66 RProperty iStatusProperty; |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // __LOCKAPPSTATEPUBLISHER_H__ |
|
71 // End of File |
|
72 |
|