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.
Public Member Functions | |
---|---|
~CAgentInfo () | |
TAgent & | Agent () |
CAgentFactory & | AgentFactoryL () |
CAgentManager & | AgentManagerL () |
const RPointerArray < HBufC8 > & | ConsumerMimeTypes () |
TBool | IsSupportedConsumer (const TDesC8 &) |
TBool | IsSupportedSupplier (const TDesC8 &) |
CAgentInfo * | NewLC (const CImplementationInformation &) |
TInt | PreferredBufferSize () |
const TDesC & | PrivateDirectoryName () |
const RPointerArray < HBufC8 > & | SupplierMimeTypes () |
Private Member Functions | |
---|---|
CAgentInfo () | |
void | AddToArrayL (const TDesC8 &, RPointerArray < HBufC8 > &) |
void | ConstructL (const CImplementationInformation &) |
void | ParseMimeTypesL (const TDesC8 &, RPointerArray < HBufC8 > &) |
Private Attributes | |
---|---|
TAgent | iAgent |
CAgentFactory * | iAgentFactory |
CAgentManager * | iAgentManager |
RPointerArray < HBufC8 > | iConsumerMimeTypes |
TInt | iPreferredBufferSize |
TBuf < KMaxSIDLength > | iPrivateDirectoryName |
RPointerArray < HBufC8 > | iSupplierMimeTypes |
void | AddToArrayL | ( | const TDesC8 & | aElement, |
RPointerArray < HBufC8 > & | aArray | |||
) | [private] |
const TDesC8 & aElement | |
RPointerArray < HBufC8 > & aArray |
CAgentFactory & | 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.
CAgentManager & | 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.
void | ConstructL | ( | const CImplementationInformation & | aImplInfo | ) | [private] |
const CImplementationInformation & aImplInfo |
const RPointerArray < HBufC8 > & | ConsumerMimeTypes | ( | ) | const |
Exposes the array of consumer MIME types supported by this agent.
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.
TBool | IsSupportedConsumer | ( | const TDesC8 & | aConsumerMime | ) | const |
Determines whether this agent recognizes the consumer MIME type.
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.
const TDesC8 & aConsumerMime | The consumer mime type to check. |
TBool | IsSupportedSupplier | ( | const TDesC8 & | aSupplierMime | ) | const |
Determines whether this agent recognizes the supplier MIME type.
const TDesC8 & aSupplierMime | The supplier MIME type to check. |
CAgentInfo * | NewLC | ( | const CImplementationInformation & | aImplInfo | ) | [static] |
Constructs a new CAgentInfo object from an ECOM CImplementationInfo.
const CImplementationInformation & aImplInfo | An ECOM Implementation from REComSession::ListImplementationsL(). |
void | ParseMimeTypesL | ( | const TDesC8 & | aBuf, |
RPointerArray < HBufC8 > & | aMimeTypes | |||
) | [private] |
const TDesC8 & aBuf | |
RPointerArray < HBufC8 > & aMimeTypes |
TInt | PreferredBufferSize | ( | ) | const |
Gets the preferred buffer size for this agent to recognize DRM files with the ContentAccess::CAgentResolver::DoRecognize() function.
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()
const RPointerArray < HBufC8 > & | SupplierMimeTypes | ( | ) | const |
Exposes the array of supplier MIME types supported by this agent.
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.