|
1 /* |
|
2 * Copyright (c) 2003-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 the License "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 |
|
19 |
|
20 #ifndef __TESTAGENTFACTORY_H__ |
|
21 #define __TESTAGENTFACTORY_H__ |
|
22 |
|
23 #include <caf/caf.h> |
|
24 #include "agentfactory.h" |
|
25 |
|
26 class CTestAgentFactory : public ContentAccess::CAgentFactory |
|
27 { |
|
28 public: |
|
29 static CAgentFactory* NewL(); |
|
30 |
|
31 // From CAgentFactory |
|
32 virtual ContentAccess::CAgentContent* CreateContentBrowserL(const TDesC& aURI, ContentAccess::TContentShareMode aShareMode); |
|
33 virtual ContentAccess::CAgentContent* CreateContentBrowserL(RFile& aFile); |
|
34 virtual ContentAccess::CAgentData* CreateDataConsumerL(const ContentAccess::TVirtualPathPtr& aVirtualPath, ContentAccess::TContentShareMode aShareMode); |
|
35 virtual ContentAccess::CAgentData* CreateDataConsumerL(RFile& aFile, const TDesC& aUniqueId); |
|
36 virtual ContentAccess::CAgentManager* CreateManagerL(); |
|
37 virtual ContentAccess::CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const ContentAccess::CMetaDataArray& aMetaDataArray, const TDesC& aOutputDirectory, const TDesC& aSuggestedFileName); |
|
38 virtual ContentAccess::CAgentImportFile* CreateImporterL(const TDesC8& aMimeType, const ContentAccess::CMetaDataArray& aMetaDataArray); |
|
39 virtual ContentAccess::CAgentRightsManager* CreateRightsManagerL(); |
|
40 }; |
|
41 |
|
42 #endif // __TESTAGENTFACTORY_H__ |