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