|
1 //testagentfactory.h |
|
2 |
|
3 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 // All rights reserved. |
|
5 // This component and the accompanying materials are made available |
|
6 // under the terms of "Eclipse Public License v1.0" |
|
7 // which accompanies this distribution, and is available |
|
8 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 // |
|
10 // Initial Contributors: |
|
11 // Nokia Corporation - initial contribution. |
|
12 // |
|
13 // Contributors: |
|
14 // |
|
15 // Description: |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef __TESTAGENTFACTORY_H__ |
|
20 #define __TESTAGENTFACTORY_H__ |
|
21 |
|
22 #include <caf/caf.h> |
|
23 #include <caf/agentfactory.h> |
|
24 |
|
25 using namespace ContentAccess; |
|
26 |
|
27 class CTestAgentFactory : public CAgentFactory |
|
28 { |
|
29 public: |
|
30 static CAgentFactory* NewL(); |
|
31 |
|
32 // From CAgentFactory |
|
33 virtual CAgentContent* CreateContentBrowserL(const TDesC& aURI, TContentShareMode aShareMode); |
|
34 virtual CAgentContent* CreateContentBrowserL(RFile& aFile); |
|
35 virtual CAgentData* CreateDataConsumerL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
|
36 virtual CAgentData* CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId); |
|
37 virtual CAgentManager* CreateManagerL(); |
|
38 virtual CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName); |
|
39 virtual CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray); |
|
40 virtual CAgentRightsManager* CreateRightsManagerL(); |
|
41 }; |
|
42 |
|
43 #endif // __TESTAGENTFACTORY_H__ |