ContentAccess::CAgentFactory Class Reference
class ContentAccess::CAgentFactory : public CBase |
Abstract interface handed out by an ECOM agent implementation by REComSession::CreateImplementationL().
CAgentFactory defines an abstract factory that is responsible for creating the abstract products:
Derived classes will hand out concrete product implementations which are specific for that particular agent.
Derived classes effectively represent the ECOM session handle used by CAF classes
ContentAccess::CF32AgentFactory. This implements ContentAccess::CAgentFactory to handle unrestricted content.
Inherits from
- ContentAccess::CAgentFactory
Constructor & Destructor Documentation
~CAgentFactory()
IMPORT_C | ~CAgentFactory | ( | ) | [virtual] |
Member Functions Documentation
CreateContentBrowserL(const TDesC &, TContentShareMode)
Factory function creates a CAgentContent object for browsing the contents of a file belonging to this agent.
Parameters
const TDesC & aURI | The location of the file. |
TContentShareMode aShareMode | The share mode used for opening this content |
CreateContentBrowserL(RFile &)
Creates a CAgentContent object for browsing the contents of a file belonging to this agent
Parameters
RFile & aFile | An open file handle for reading from the file, the agent must make its own duplicate of the file handle. |
CreateDataConsumerL(const TVirtualPathPtr &, TContentShareMode)
Factory function creates a CAgentData object for reading from a content object
Parameters
const TVirtualPathPtr & aVirtualPath | The content object to read from |
TContentShareMode aShareMode | The share mode for opening the file containing the content object |
CreateDataConsumerL(RFile &, const TDesC &)
Factory function creates a CAgentData object for reading from a content object.
Parameters
RFile & aFile | An open file handle used by the agent to read from the file. The agent MUST make its own duplicate of this file handle, either in the same process or a server process |
const TDesC & aUniqueId | The agent specific unique ID of object within the file to read. |
CreateImporterL(const TDesC8 &, const CMetaDataArray &, const TDesC &, const TDesC &)
Factory function creates an object that allows the agent to import or transform content. The agent will supply output files where necessary
-
leave
- KErrCANotSupported If the agent does not support importing or transforming content
Parameters
const TDesC8 & aMimeType | The mime type of the file to be imported |
const CMetaDataArray & aMetaDataArray | Array of metadata associated with the file to import |
const TDesC & aOutputDirectory | Preferred directory to store output files |
const TDesC & aSuggestedFileName | Suggested filename for the output file(s) |
CreateImporterL(const TDesC8 &, const CMetaDataArray &)
Factory function creates an object that allows the agent to import or transform content. The caller will supply output files where necessary
-
leave
- KErrCANotSupported If the agent does not support importing or transforming content
Parameters
const TDesC8 & aMimeType | The mime type of the file to be imported |
const CMetaDataArray & aMetaDataArray | Array of metadata associated with the file to import |
CreateManagerL()
Factory function creates an object for performing management functions with this particular agent
CAgentManager objects are stateless so they require no construction parameters.
CreateRightsManagerL()
Factory function that creates an rights manager object for this agent
-
leave
- KErrCANotSupported If the agent does not provide any rights management functions
NewL(TUid)
Create a new instance of a particular agent using its DLL implementation Uid
Parameters
TUid aUid | The Uid of the agent to create an instance of its CAgentFactory |
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.