| class ContentAccess::CAgentFactory : public CBase |
Abstract interface handed out by an ECOM agent implementation by REComSession::CreateImplementationL() .
Derived classes effectively represent the ECOM session handle used by CAF classes
ContentAccess::CF32AgentFactory. This implements ContentAccess::CAgentFactory to handle unrestricted content.
| Public Member Functions | |
|---|---|
| ~CAgentFactory () | |
| CAgentContent * | CreateContentBrowserL (const TDesC &, TContentShareMode ) |
| CAgentContent * | CreateContentBrowserL ( RFile &) |
| CAgentData * | CreateDataConsumerL (const TVirtualPathPtr &, TContentShareMode ) |
| CAgentData * | CreateDataConsumerL ( RFile &, const TDesC &) |
| CAgentImportFile * | CreateImporterL (const TDesC8 &, const CMetaDataArray &, const TDesC &, const TDesC &) |
| CAgentImportFile * | CreateImporterL (const TDesC8 &, const CMetaDataArray &) |
| CAgentManager * | CreateManagerL () |
| CAgentRightsManager * | CreateRightsManagerL () |
| CAgentFactory * | NewL ( TUid ) |
| Private Attributes | |
|---|---|
| TUid | iEcomKey |
| IMPORT_C | ~CAgentFactory | ( | ) | [virtual] |
Destructor, calls REComSession::DestroyedImplementation() ; to destroy the ECOM implementation. When all implementations are destroyed ECOM will unload the agent DLL
| CAgentContent * | CreateContentBrowserL | ( | const TDesC & | aURI, |
| TContentShareMode | aShareMode | |||
| ) | [pure virtual] | |||
Factory function creates a CAgentContent object for browsing the contents of a file belonging to this agent.
| const TDesC & aURI | The location of the file. |
| TContentShareMode aShareMode | The share mode used for opening this content |
| CAgentContent * | CreateContentBrowserL | ( | RFile & | aFile | ) | [pure virtual] |
Creates a CAgentContent object for browsing the contents of a file belonging to this agent
| RFile & aFile | An open file handle for reading from the file, the agent must make its own duplicate of the file handle. |
| CAgentData * | CreateDataConsumerL | ( | const TVirtualPathPtr & | aVirtualPath, |
| TContentShareMode | aShareMode | |||
| ) | [pure virtual] | |||
Factory function creates a CAgentData object for reading from a content object
| const TVirtualPathPtr & aVirtualPath | The content object to read from |
| TContentShareMode aShareMode | The share mode for opening the file containing the content object |
| CAgentData * | CreateDataConsumerL | ( | RFile & | aFile, |
| const TDesC & | aUniqueId | |||
| ) | [pure virtual] | |||
Factory function creates a CAgentData object for reading from a content object.
| CAgentImportFile * | CreateImporterL | ( | const TDesC8 & | aMimeType, |
| const CMetaDataArray & | aMetaDataArray, | |||
| const TDesC & | aOutputDirectory, | |||
| const TDesC & | aSuggestedFileName | |||
| ) | [pure virtual] | |||
Factory function creates an object that allows the agent to import or transform content. The agent will supply output files where necessary
| 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) |
| CAgentImportFile * | CreateImporterL | ( | const TDesC8 & | aMimeType, |
| const CMetaDataArray & | aMetaDataArray | |||
| ) | [pure virtual] | |||
Factory function creates an object that allows the agent to import or transform content. The caller will supply output files where necessary
| const TDesC8 & aMimeType | The mime type of the file to be imported |
| const CMetaDataArray & aMetaDataArray | Array of metadata associated with the file to import |
| CAgentManager * | CreateManagerL | ( | ) | [pure virtual] |
Factory function creates an object for performing management functions with this particular agent
CAgentManager objects are stateless so they require no construction parameters.
| CAgentRightsManager * | CreateRightsManagerL | ( | ) | [pure virtual] |
Factory function that creates an rights manager object for this agent
| CAgentFactory * | NewL | ( | TUid | aUid | ) | [static] |
Create a new instance of a particular agent using its DLL implementation Uid
| TUid aUid | The Uid of the agent to create an instance of its CAgentFactory |
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.