1 /* |
|
2 * Copyright (c) 2002-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: MdH Connection Monitor class declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef C_MDHCONNECTIONMMONITOR_H |
|
23 #define C_MDHCONNECTIONMMONITOR_H |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 #include <rconnmon.h> |
|
29 |
|
30 #include "mdhconnectionmonitorobserver.h" |
|
31 |
|
32 // CONSTANTS |
|
33 // none |
|
34 |
|
35 // MACROS |
|
36 // none |
|
37 |
|
38 // DATA TYPES |
|
39 // none |
|
40 |
|
41 // FUNCTION PROTOTYPES |
|
42 // none |
|
43 |
|
44 // FORWARD DECLARATIONS |
|
45 // none |
|
46 |
|
47 // CLASS DECLARATION |
|
48 |
|
49 /** |
|
50 * CMdHConnectionMonitor provides connection monitor for |
|
51 * Metadata harvester. |
|
52 * |
|
53 * @lib mdhserver.exe |
|
54 * @since S60 3.1 |
|
55 */ |
|
56 class CMdHConnectionMonitor : public CBase, |
|
57 public MConnectionMonitorObserver |
|
58 { |
|
59 |
|
60 public: // Constructors and destructor |
|
61 |
|
62 /** |
|
63 * Two-phased constructor. |
|
64 */ |
|
65 IMPORT_C static CMdHConnectionMonitor* NewL( |
|
66 MMdHConnectionMonitorObserver& aObserver, TInt aAccessPoint ); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 virtual ~CMdHConnectionMonitor(); |
|
72 |
|
73 |
|
74 protected: // From MConnectionMonitorObserver |
|
75 |
|
76 /** |
|
77 * Catches the Connection monitor events |
|
78 * @since S60 3.1 |
|
79 * @param aConnMonEvent event |
|
80 * @return none |
|
81 */ |
|
82 void EventL( const CConnMonEventBase& aConnMonEvent ) ; |
|
83 |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * C++ default constructor. |
|
89 */ |
|
90 CMdHConnectionMonitor( MMdHConnectionMonitorObserver& aObserver, |
|
91 TInt aAccessPoint ); |
|
92 |
|
93 /** |
|
94 * By default Symbian 2nd phase constructor is private. |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 |
|
99 private: // Data |
|
100 |
|
101 // Connection monitor server |
|
102 RConnectionMonitor iConnectionMonitor; |
|
103 |
|
104 // Connection id |
|
105 TInt iConnectionId; |
|
106 |
|
107 // Callback pointer |
|
108 // not owned |
|
109 MMdHConnectionMonitorObserver& iObserver; |
|
110 |
|
111 // Accesspoint to be observed |
|
112 TInt iAccessPoint; |
|
113 |
|
114 }; |
|
115 |
|
116 #endif // C_MDHCONNECTIONMMONITOR_H |
|
117 |
|
118 // End of File |
|