|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This class contains all the entry class which is used to register the |
|
15 // plugin. The additional data and functionality is to take account of plugins |
|
16 // that are discovered by their dll entry, rsc entry, and spi entry |
|
17 // |
|
18 // |
|
19 |
|
20 #ifndef _EComEntryBase_H |
|
21 #define _EComEntryBase_H |
|
22 |
|
23 #include <f32file.h> |
|
24 #include <barsc2.h> |
|
25 #include "RegistryData.h" |
|
26 |
|
27 /* |
|
28 CPluginBase is the base class for ECOM plugins discovered through different |
|
29 mechanism e.g through Dll, Rsc file or from Spi file. |
|
30 */ |
|
31 class CPluginBase:public CBase |
|
32 { |
|
33 public: |
|
34 CPluginBase(); |
|
35 CResourceFile* RscFile() const{return iRscFile;} |
|
36 virtual ~CPluginBase(); |
|
37 virtual HBufC* RscFileExt() const{ return NULL;} |
|
38 public: |
|
39 /** |
|
40 iDllSecondUid: Identifies type of the Interface Implementation Collection. (collection or collection3) |
|
41 It will be used by CLoadManager to decide how to initialise a plugin. |
|
42 */ |
|
43 TUid iDllSecondUid; |
|
44 /** |
|
45 iDllThirdUid: Identifies a component uniquely. |
|
46 */ |
|
47 TUid iDllThirdUid; |
|
48 |
|
49 TTime iDllModifiedTime; |
|
50 HBufC* iDllName; |
|
51 protected: |
|
52 CResourceFile* iRscFile; |
|
53 }; |
|
54 |
|
55 // |
|
56 |
|
57 // |
|
58 |
|
59 class RResourceArchive; |
|
60 /* |
|
61 CSecurePlugin refers to the new secure ecom plugin that is discovered through |
|
62 resource file as a result of platform security. These resource files are stored |
|
63 in <drive>\Resource\Plugins |
|
64 */ |
|
65 class CSecurePlugin :public CPluginBase |
|
66 { |
|
67 public: |
|
68 static CSecurePlugin* NewL(RFs& aFs,const TEntry& aEntry,const TDriveName& aDriveName, TBool aIsRO); |
|
69 virtual ~CSecurePlugin(); |
|
70 HBufC* RscFileExt() const{ return iRscFileExt;} |
|
71 private: |
|
72 CSecurePlugin(const TEntry& aEntry); |
|
73 void ConstructL(RFs& aFs,const TEntry& aEntry,const TDriveName& aDriveName, TBool aIsRO); |
|
74 HBufC* iRscFileExt; |
|
75 }; |
|
76 |
|
77 // |
|
78 /* |
|
79 CSpiPlugin refers to ecom plugin that is discovered through reading the resource |
|
80 archive(a spi file). The resource archive only applies to read only drive. |
|
81 */ |
|
82 class CSpiPlugin :public CPluginBase |
|
83 { |
|
84 public: |
|
85 static CSpiPlugin* NewL(RResourceArchive& aRscArchive); |
|
86 private: |
|
87 CSpiPlugin(); |
|
88 void ConstructL(RResourceArchive& aRscArchive); |
|
89 |
|
90 }; |
|
91 |
|
92 #endif //_EComEntryBase_H |