|
1 /* |
|
2 * Copyright (c) 2006-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 |
|
18 #ifndef __CHARVESTERPLUGINFACTORY_H__ |
|
19 #define __CHARVESTERPLUGINFACTORY_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 // FORWARD DECLARATION |
|
24 class CHarvesterPluginInfo; |
|
25 class CHarvesterPlugin; |
|
26 class CHarvesterData; |
|
27 class CHarvesterBlacklist; |
|
28 |
|
29 NONSHARABLE_CLASS( CHarvesterPluginFactory ) : public CBase |
|
30 { |
|
31 public: |
|
32 |
|
33 IMPORT_C static CHarvesterPluginFactory* NewL(); |
|
34 virtual ~CHarvesterPluginFactory(); |
|
35 |
|
36 IMPORT_C void GetObjectDefL( CHarvesterData& aHD, TDes& aObjectDef ); |
|
37 IMPORT_C void GetMimeType(const TDesC& aUri, TDes& aMimeType); |
|
38 IMPORT_C TInt HarvestL( CHarvesterData* aHD ); |
|
39 IMPORT_C RPointerArray<CHarvesterPluginInfo>& GetPluginInfos(); |
|
40 IMPORT_C void SetBlacklist( CHarvesterBlacklist& aBlacklist ); |
|
41 IMPORT_C TBool IsSupportedFileExtension( const TDesC& aFileName ); |
|
42 IMPORT_C TBool IsContainerFileL( const TDesC& aURI ); |
|
43 |
|
44 private: |
|
45 CHarvesterPluginFactory(); |
|
46 void ConstructL(); |
|
47 void SetupHarvesterPluginInfoL(); |
|
48 void AddNewPluginL( const TDesC8& aType, const TDesC8& aOpaque, TUid aPluginUid ); |
|
49 void GetSupportedPluginsL( RPointerArray<CHarvesterPluginInfo>& aSupportedPlugins, const TDesC& aExt ); |
|
50 |
|
51 private: |
|
52 RPointerArray<CHarvesterPluginInfo> iHarvesterPluginInfoArray; |
|
53 CHarvesterBlacklist* iBlacklist; |
|
54 }; |
|
55 |
|
56 #endif |
|
57 |