ContentAccess::CAgentInfo Class Reference
class ContentAccess::CAgentInfo : public CBase |
Holds information about a Content Access Agent implementation.
The metadata is supplied in the agents resource file so the information can be obtained without the need to construct the agent.
The AgentFactoryL() function is used by other CAF classes to access the agent's CAgentFactory implementation.
Inherits from
- ContentAccess::CAgentInfo
Constructor & Destructor Documentation
Member Functions Documentation
AddToArrayL(const TDesC8 &, RPointerArray< HBufC8 > &)
AgentFactoryL()
Accessor for agent factory.
Allows the factory to be constructed once and used many times. DOES NOT transfer ownership of the CAgentFactory to the caller.
AgentManagerL()
Accessor to the agent manager.
The agent manager is stateless and this method allows it to be constructed once and used several times. DOES NOT transfer ownership of the CAgentManager to the caller.
ConstructL(const CImplementationInformation &)
void | ConstructL | ( | const CImplementationInformation & | aImplInfo | ) | [private] |
Parameters
const CImplementationInformation & aImplInfo | |
ConsumerMimeTypes()
Exposes the array of consumer MIME types supported by this agent.
Note:
Scheduled to be removed from the CAF API recognizer uses MIME types based upon the content type, not the mime type of the file itself. There will be no Consumer mime types, only modified content types.
IsSupportedConsumer(const TDesC8 &)
TBool
| IsSupportedConsumer | ( | const TDesC8 & | aConsumerMime | ) | const |
Determines whether this agent recognizes the consumer MIME type.
Note:
Scheduled to be removed from the CAF API recognizer uses MIME types based upon the content type, not the mime type of the file itself. There will be no Consumer MIME types, only modified content types.
Parameters
const TDesC8 & aConsumerMime | The consumer mime type to check. |
IsSupportedSupplier(const TDesC8 &)
TBool
| IsSupportedSupplier | ( | const TDesC8 & | aSupplierMime | ) | const |
Determines whether this agent recognizes the supplier MIME type.
Parameters
const TDesC8 & aSupplierMime | The supplier MIME type to check. |
NewLC(const CImplementationInformation &)
CAgentInfo * | NewLC | ( | const CImplementationInformation & | aImplInfo | ) | [static] |
Constructs a new CAgentInfo object from an ECOM CImplementationInfo.
Parameters
const CImplementationInformation & aImplInfo | An ECOM Implementation from REComSession::ListImplementationsL(). |
ParseMimeTypesL(const TDesC8 &, RPointerArray< HBufC8 > &)
PreferredBufferSize()
TInt
| PreferredBufferSize | ( | ) | const |
Gets the preferred buffer size for this agent to recognize DRM files with the ContentAccess::CAgentResolver::DoRecognize() function.
PrivateDirectoryName()
const TDesC & | PrivateDirectoryName | ( | ) | const |
The private server directory managed by this agent
This function returns the directory under C:\private\ used by this agent. This is specified in the agents resource file in the opaque_data field.
If the agent does not use a private directory the return value will be KNullDesC()
SupplierMimeTypes()
Exposes the array of supplier MIME types supported by this agent.
Member Data Documentation
CAgentFactory * iAgentFactory
CAgentManager * iAgentManager
RPointerArray< HBufC8 > iConsumerMimeTypes
TInt
iPreferredBufferSize
TInt
| iPreferredBufferSize | [private] |
TBuf< KMaxSIDLength > iPrivateDirectoryName
RPointerArray< HBufC8 > iSupplierMimeTypes
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.