harvester/common/inc/harvesterpluginfactory.h
branchRCL_3
changeset 3 6752808b2036
parent 0 c53acadfccc6
child 7 3cebc1a84278
equal deleted inserted replaced
2:b73a2e62868f 3:6752808b2036
    23 // FORWARD DECLARATION 
    23 // FORWARD DECLARATION 
    24 class CHarvesterPluginInfo;
    24 class CHarvesterPluginInfo;
    25 class CHarvesterPlugin;
    25 class CHarvesterPlugin;
    26 class CHarvesterData;
    26 class CHarvesterData;
    27 class CHarvesterBlacklist;
    27 class CHarvesterBlacklist;
       
    28 class CHarvesterEventManager;
    28 
    29 
    29 NONSHARABLE_CLASS( CHarvesterPluginFactory ) : public CBase
    30 NONSHARABLE_CLASS( CHarvesterPluginFactory ) : public CBase
    30 	{
    31 	{
    31 	public:
    32 	public:
    32 
    33 
    38 		IMPORT_C TInt HarvestL( CHarvesterData* aHD );
    39 		IMPORT_C TInt HarvestL( CHarvesterData* aHD );
    39 		IMPORT_C RPointerArray<CHarvesterPluginInfo>& GetPluginInfos();
    40 		IMPORT_C RPointerArray<CHarvesterPluginInfo>& GetPluginInfos();
    40 		IMPORT_C void SetBlacklist( CHarvesterBlacklist& aBlacklist );
    41 		IMPORT_C void SetBlacklist( CHarvesterBlacklist& aBlacklist );
    41 		IMPORT_C TBool IsSupportedFileExtension( const TDesC& aFileName );
    42 		IMPORT_C TBool IsSupportedFileExtension( const TDesC& aFileName );
    42 		IMPORT_C TBool IsContainerFileL( const TDesC& aURI );
    43 		IMPORT_C TBool IsContainerFileL( const TDesC& aURI );
       
    44 		
       
    45 		IMPORT_C void SendHarvestingStatusEventL( TBool aStarted );
    43 
    46 
    44 	private:
    47 	private:
    45 		CHarvesterPluginFactory();
    48 		CHarvesterPluginFactory();
    46 		void ConstructL();
    49 		void ConstructL();
    47 		void SetupHarvesterPluginInfoL();
    50 		void SetupHarvesterPluginInfoL();
    48 		void AddNewPluginL( const TDesC8& aType, const TDesC8& aOpaque, TUid aPluginUid );
    51 		void AddNewPluginL( const TDesC8& aType, const TDesC8& aOpaque, TUid aPluginUid );
    49 		void GetSupportedPluginsL( RPointerArray<CHarvesterPluginInfo>& aSupportedPlugins, const TDesC& aExt );
    52 		void GetSupportedPluginsL( RPointerArray<CHarvesterPluginInfo>& aSupportedPlugins, const TDesC& aExt );
       
    53 		void SetPluginInfo( CHarvesterData* aHD );
    50 		
    54 		
    51 	private:
    55 	private:
    52 		RPointerArray<CHarvesterPluginInfo> iHarvesterPluginInfoArray;
    56 		RPointerArray<CHarvesterPluginInfo> iHarvesterPluginInfoArray;
    53 		CHarvesterBlacklist* iBlacklist;
    57 		CHarvesterBlacklist* iBlacklist;
       
    58 		  
       
    59 	    TBool iHarvesting;
       
    60 		CHarvesterEventManager* iHarvesterEventManager;
    54 	};
    61 	};
    55 
    62 
    56 #endif
    63 #endif
    57 
    64