|
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: Publish & Subscribe property watcher |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCAPSPROPWATCHER_H |
|
21 #define CCAPSPROPWATCHER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32property.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class MCAPSPropChangeObserver; |
|
30 /** |
|
31 * Publish & Sbuscribe property watcher |
|
32 * The watcher is an active object |
|
33 * |
|
34 * @lib chatng.app |
|
35 * @since Series 60 Platform 2.6 |
|
36 */ |
|
37 class CCAPSPropWatcher : public CActive |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CCAPSPropWatcher* NewL( MCAPSPropChangeObserver* aObserver, |
|
45 TUid aCategory, |
|
46 TUint aKey ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CCAPSPropWatcher(); |
|
52 |
|
53 public: // From CActive |
|
54 |
|
55 void RunL(); |
|
56 void DoCancel(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ default constructor. |
|
62 */ |
|
63 CCAPSPropWatcher( MCAPSPropChangeObserver* aObserver ); |
|
64 |
|
65 /** |
|
66 * By default Symbian 2nd phase constructor is private. |
|
67 */ |
|
68 void ConstructL( TUid aCategory, TUint aKey ); |
|
69 |
|
70 private: |
|
71 |
|
72 RProperty iProperty; |
|
73 MCAPSPropChangeObserver* iObserver; |
|
74 }; |
|
75 |
|
76 #endif // CCAPSPROPWATCHER_H |
|
77 |
|
78 // End of File |