|
1 // Copyright (c) 2003-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 // |
|
15 |
|
16 #include <caf/caf.h> |
|
17 #include "Reftestagentfactory.h" |
|
18 #include "Reftestagentcontent.h" |
|
19 #include "Reftestagentdata.h" |
|
20 #include "Reftestagentmanager.h" |
|
21 #include "Reftestagentimportfile.h" |
|
22 #include "Reftestagentrightsmanager.h" |
|
23 |
|
24 using namespace ContentAccess; |
|
25 |
|
26 CAgentFactory* CRefTestAgentFactory::NewL() |
|
27 { |
|
28 return new (ELeave) CRefTestAgentFactory(); |
|
29 } |
|
30 |
|
31 CAgentContent* CRefTestAgentFactory::CreateContentBrowserL(const TDesC& aURI, TContentShareMode aShareMode) |
|
32 { |
|
33 return CRefTestAgentContent::NewL(aURI, aShareMode); |
|
34 } |
|
35 |
|
36 CAgentContent* CRefTestAgentFactory::CreateContentBrowserL(RFile& aFile) |
|
37 { |
|
38 return CRefTestAgentContent::NewL(aFile); |
|
39 } |
|
40 |
|
41 CAgentData* CRefTestAgentFactory::CreateDataConsumerL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode) |
|
42 { |
|
43 return CRefTestAgentData::NewL(aVirtualPath, aShareMode); |
|
44 } |
|
45 |
|
46 CAgentData* CRefTestAgentFactory::CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId) |
|
47 { |
|
48 return CRefTestAgentData::NewL(aFile, aUniqueId); |
|
49 } |
|
50 |
|
51 CAgentManager* CRefTestAgentFactory::CreateManagerL() |
|
52 { |
|
53 return CRefTestAgentManager::NewL(); |
|
54 } |
|
55 |
|
56 CAgentImportFile* CRefTestAgentFactory::CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName) |
|
57 { |
|
58 return CRefTestAgentImportFile::NewL(aMimeType, aMetaDataArray, aOutputDirectory, aSuggestedFileName); |
|
59 } |
|
60 |
|
61 CAgentImportFile* CRefTestAgentFactory::CreateImporterL(const TDesC8& aMimeType, const CMetaDataArray& aMetaDataArray) |
|
62 { |
|
63 return CRefTestAgentImportFile::NewL(aMimeType, aMetaDataArray); |
|
64 } |
|
65 |
|
66 CAgentRightsManager* CRefTestAgentFactory::CreateRightsManagerL() |
|
67 { |
|
68 return CRefTestAgentRightsManager::NewL(); |
|
69 } |
|
70 |