|
1 /* |
|
2 * Copyright (c) 2003-2005 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: Declares ECom monitoring class for AIW framework. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef _AIWECOMMONITOR_H |
|
22 #define _AIWECOMMONITOR_H |
|
23 |
|
24 #include <ecom/ecom.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAiwCriteriaItem; |
|
28 class CAiwServiceIfBase; |
|
29 |
|
30 class CAiwEcomMonitor : public CActive |
|
31 { |
|
32 public: |
|
33 static CAiwEcomMonitor* NewL(TCallBack& aSynchronizeCallBack); |
|
34 virtual ~CAiwEcomMonitor(); |
|
35 |
|
36 protected: // Functions from base classes |
|
37 /** |
|
38 * From CActive |
|
39 */ |
|
40 void RunL(); |
|
41 |
|
42 /** |
|
43 * From CActive |
|
44 */ |
|
45 void DoCancel(); |
|
46 |
|
47 public: |
|
48 inline REComSession& EComSession(); |
|
49 void ListImplemetationsL(RImplInfoPtrArray& aResult, CAiwCriteriaItem* aItem) const; |
|
50 CAiwServiceIfBase* CreateImplementationL(TUid aImplUid); |
|
51 |
|
52 protected: |
|
53 /** |
|
54 * C++ default constructor. |
|
55 */ |
|
56 CAiwEcomMonitor(TCallBack& aSynchronizeCallBack); |
|
57 void ConstructL(); |
|
58 void StartMonitoring(); |
|
59 |
|
60 private: |
|
61 TCallBack iSynchronizeCallBack; |
|
62 REComSession iEcomSession; |
|
63 }; |
|
64 |
|
65 |
|
66 inline REComSession& CAiwEcomMonitor::EComSession() |
|
67 { |
|
68 return iEcomSession; |
|
69 } |
|
70 |
|
71 #endif // _AIWECOMMONITOR_H |
|
72 |
|
73 // End of file |