|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef CDLECOMREG_H |
|
18 #define CDLECOMREG_H |
|
19 |
|
20 #include "CdlDllWatcher.h" |
|
21 #include <ecom/ecom.h> |
|
22 #include <CdlRefs.h> |
|
23 |
|
24 class CCdlEcomWatcher : public CCdlDllsWatcherBase |
|
25 { |
|
26 public: |
|
27 CCdlEcomWatcher(RFs& aFs, MCdlDllsObserver* aObserver); |
|
28 ~CCdlEcomWatcher(); |
|
29 void ConstructL(); |
|
30 |
|
31 private: // from CActive |
|
32 void DoCancel(); |
|
33 void RunL(); |
|
34 |
|
35 private: |
|
36 void GetListL(); |
|
37 void Queue(); |
|
38 void HandleNewListL(RImplInfoPtrArray& aImplArray); |
|
39 void AddNewToObserverL(CImplementationInformation& aImpl); |
|
40 void RemoveCurrentFromObserverL(CImplementationInformation& aImpl); |
|
41 void StartTellingObserverIfNecessaryL(); |
|
42 void ImplFileName(CImplementationInformation& aImpl, TFileName& aFileName); |
|
43 |
|
44 private: // from CCdlDllsWatcherBase |
|
45 TInt IsPluginInRom(const TDesC& aFileName, TBool& aIsInRom) const; |
|
46 TInt PluginDrive(const TDesC& aFileName, TDriveUnit& aDrive) const; |
|
47 |
|
48 private: |
|
49 TInt FindPlugin(const TDesC& aFileName) const; |
|
50 |
|
51 private: |
|
52 REComSession* iEcom; |
|
53 MCdlDllsObserver* iObserver; |
|
54 RImplInfoPtrArray* iImplArray; |
|
55 TBool iTellingObserver; |
|
56 }; |
|
57 |
|
58 |
|
59 #endif |