equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: For controlling S60 device lights. |
|
15 * Subscribes to a property to monitor changes in it. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef HTIPROPERTYSUBSCRIBER_H |
|
21 #define HTIPROPERTYSUBSCRIBER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32property.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Subscribes to a property to monitor changes in it. |
|
32 */ |
|
33 class CHtiPropertySubscriber : public CActive |
|
34 { |
|
35 public: |
|
36 CHtiPropertySubscriber( TCallBack aCallBack, RProperty& aProperty ); |
|
37 ~CHtiPropertySubscriber(); |
|
38 |
|
39 public: // New functions |
|
40 void Subscribe(); |
|
41 void Unsubscribe(); |
|
42 |
|
43 private: // from CActive |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 private: // data |
|
48 TCallBack iCallBack; |
|
49 RProperty& iProperty; |
|
50 }; |
|
51 |
|
52 #endif // HTIPROPERTYSUBSCRIBER_H |
|
53 |
|
54 // End of file |