equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2008 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: Monitors for publish and subscribe property. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PNSMONITOR_H |
|
20 #define C_PNSMONITOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class MPNSMonitorObserver; |
|
25 |
|
26 /** |
|
27 * publish and subscribe monitor class |
|
28 * |
|
29 * @since S60 5.0 |
|
30 */ |
|
31 NONSHARABLE_CLASS( CPNSMonitor ) : public CActive |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor |
|
38 */ |
|
39 static CPNSMonitor* NewL( MPNSMonitorObserver& aObserver ); |
|
40 |
|
41 /** |
|
42 * Virtual destructor |
|
43 */ |
|
44 virtual ~CPNSMonitor(); |
|
45 |
|
46 /** |
|
47 * Start monitoring a particular publish and subscribe property |
|
48 */ |
|
49 void Start(); |
|
50 |
|
51 protected: |
|
52 |
|
53 /** |
|
54 * From CActive |
|
55 */ |
|
56 void RunL(); |
|
57 |
|
58 /** |
|
59 * From CActive |
|
60 */ |
|
61 void DoCancel(); |
|
62 |
|
63 /** |
|
64 * From CActive |
|
65 */ |
|
66 TInt RunError( TInt aError ); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * Private constructor |
|
72 */ |
|
73 CPNSMonitor( MPNSMonitorObserver& aObserver ); |
|
74 |
|
75 /** |
|
76 * 2nd phased constructor |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 private: // data |
|
81 MPNSMonitorObserver& iObserver; |
|
82 RProperty iPropertyHandler; |
|
83 }; |
|
84 |
|
85 #endif // C_PNSMONITOR_H |