ContentAccess::CAgentContent Class Reference
class ContentAccess::CAgentContent : public CBase |
Defines the agent interface allowing clients to browse the objects within a file
Inherits from
- ContentAccess::CAgentContent
Public Member Functions |
---|
TInt
| AgentSpecificCommand(TInt, const TDesC8 &, TDes8 &) |
void | AgentSpecificCommand(TInt, const TDesC8 &, TDes8 &, TRequestStatus &) |
TInt
| CancelNotifyStatusChange(TRequestStatus &, const TDesC &) |
TInt
| CancelRequestRights(TRequestStatus &, const TDesC &) |
TInt
| CloseContainer() |
void | DisplayInfoL(TDisplayInfo, const TDesC &) |
TInt
| GetAttribute(TInt, TInt &, const TDesC &) |
TInt
| GetAttributeSet(RAttributeSet &, const TDesC &) |
void | GetEmbeddedObjectsL(RStreamablePtrArray< CEmbeddedObject > &) |
void | GetEmbeddedObjectsL(RStreamablePtrArray< CEmbeddedObject > &, TEmbeddedType) |
TInt
| GetStringAttribute(TInt, TDes &, const TDesC &) |
TInt
| GetStringAttributeSet(RStringAttributeSet &, const TDesC &) |
void | NotifyStatusChange(TEventMask, TRequestStatus &, const TDesC &) |
TInt
| OpenContainer(const TDesC &) |
void | RequestRights(TRequestStatus &, const TDesC &) |
TInt
| Search(RStreamablePtrArray< CEmbeddedObject > &, const TDesC8 &, TBool) |
TInt
| SetProperty(TAgentProperty, TInt) |
Member Functions Documentation
AgentSpecificCommand(TInt, const TDesC8 &, TDes8 &)
TInt
| AgentSpecificCommand | ( | TInt | aCommand, |
| const TDesC8 & | aInputBuffer, |
| TDes8 & | aOutputBuffer |
| ) | [pure virtual] |
Allows extended synchronous calls to the CAF agent handling this file
Applications familiar with the agent can pass objects in and out using serialization.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
TInt aCommand | The agent defined command. |
const TDesC8 & aInputBuffer | Non modifyable input data buffer. |
TDes8 & aOutputBuffer | Modifyable output buffer to hold the result of the command. |
AgentSpecificCommand(TInt, const TDesC8 &, TDes8 &, TRequestStatus &)
Allows extended synchronous calls to the CAF agent handling this file. Applications familiar with the agent can pass objects in and out using serialization. NB: No assumption should be made about the scope of the descriptor passed to aInputBuffer for asynchronous IPC.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
TInt aCommand | The agent defined command. |
const TDesC8 & aInputBuffer | Non modifyable input data buffer. |
TDes8 & aOutputBuffer | Modifyable output buffer to hold the result of the command. |
TRequestStatus & aStatus | Asynchronous request status. On completion this will contain one of the following error codes: KErrNone if the command was successfully executed. KErrCANotSupported if the agent does not recognize the command. KErrOverflow if the output buffer supplied is too small. KErrPermissionDenied if the agent does not allow the client to execute the command. Otherwise one of the other CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors. |
CancelNotifyStatusChange(TRequestStatus &, const TDesC &)
Cancel a previous notification request
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
TRequestStatus & aStatus | The TRequestStatus supplied in the call to NotifyStatusChange(). |
const TDesC & aUniqueId | The UniqueId of the content object within the file. |
CancelRequestRights(TRequestStatus &, const TDesC &)
Cancel a previous RequestRights() request
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
TRequestStatus & aStatus | The TRequestStatus that was supplied to the RequestRights() function. |
const TDesC & aUniqueId | The objects Unique Id that was supplied to the RequestRights() function. |
CloseContainer()
TInt
| CloseContainer | ( | ) | [pure virtual] |
Close the current container object and go back to previous enclosing container within the file.
Allows an application to access the content objects and any nested container objects within parent container
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
DisplayInfoL(TDisplayInfo, const TDesC &)
View information associated with a single content object
This call blocks execution and only returns once the display is dismissed by the user.
-
leave
- KErrCANotSupported if information cannot be displayed or does not exist.
-
leave
- ... One of the other CAF error codes defined in caferr.h or one of the system-wide error codes for any other errors.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
TDisplayInfo aInfo | The information to display. |
const TDesC & aUniqueId | The unique id of the object within the file. |
GetAttribute(TInt, TInt &, const TDesC &)
TInt
| GetAttribute | ( | TInt | aAttribute, |
| TInt & | aValue, |
| const TDesC & | aUniqueId |
| ) | [pure virtual] |
Get an attribute for an object within the file
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
TInt aAttribute | The attribute to query, from ContentAccess::TAttribute. |
TInt & aValue | Used to return the attribute value. |
const TDesC & aUniqueId | The UniqueId of the object within the file. |
GetAttributeSet(RAttributeSet &, const TDesC &)
Get a set of attributes for an object within the file
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
RAttributeSet & aAttributeSet | The set of attributes to query and update. |
const TDesC & aUniqueId | The unique ID of the object within the file. |
GetEmbeddedObjectsL(RStreamablePtrArray< CEmbeddedObject > &)
List all the embedded container objects and content objects within the current container
The UniqueId() member of CEmbeddedObject can be used to refer directly to a particular object within the file.
-
leave
- KErrPermissionDenied if the access to the protected content is not permitted by the CAF Agent.
-
leave
- ... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
RStreamablePtrArray< CEmbeddedObject > & aArray | The array to be populated with the embedded objects. |
GetEmbeddedObjectsL(RStreamablePtrArray< CEmbeddedObject > &, TEmbeddedType)
List all the embedded objects within the current container that are of the specified type
-
leave
- KErrPermissionDenied If the access to the protected content is not permitted by the CAF Agent.
-
leave
- ... One of the CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
GetStringAttribute(TInt, TDes &, const TDesC &)
TInt
| GetStringAttribute | ( | TInt | aAttribute, |
| TDes & | aValue, |
| const TDesC & | aUniqueId |
| ) | [pure virtual] |
Get text string attributes or meta-data for an object within the file
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
TInt aAttribute | The attribute to query, from ContentAccess::TStringAttribute. |
TDes & aValue | Returns the value of the attribute. |
const TDesC & aUniqueId | The UniqueId of the object within the file. |
GetStringAttributeSet(RStringAttributeSet &, const TDesC &)
TInt
| GetStringAttributeSet | ( | RStringAttributeSet & | aStringAttributeSet, |
| const TDesC & | aUniqueId |
| ) | [pure virtual] |
Used to obtain a set of string attributes for an object within the file
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
RStringAttributeSet & aStringAttributeSet | The set of attributes to query and update. |
const TDesC & aUniqueId | The UniqueId of the container or content. |
NotifyStatusChange(TEventMask, TRequestStatus &, const TDesC &)
Request notification for an event for an object within the file. NB: No assumption should be made about the scope of the descriptor passed to aUniqueId for asynchronous IPC.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
TEventMask aMask | Bitmask of events the caller is interested in. |
TRequestStatus & aStatus | The TRequestStatus object to complete if the event occurs. |
const TDesC & aUniqueId | The UniqueId of the container or content. |
OpenContainer(const TDesC &)
TInt
| OpenContainer | ( | const TDesC & | aUniqueId | ) | [pure virtual] |
Open a Container object within the file.
Allows an application to access the content objects and any nested container objects within the specified container.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
const TDesC & aUniqueId | The container object's unique ID. |
RequestRights(TRequestStatus &, const TDesC &)
Request the agent to obtain rights for a protected content object. NB: No assumption should be made about the scope of the descriptor passed to aUniqueId for asynchronous IPC.
This request may be handled differently by different agents. Some agents may open a browser and direct the user to a URL. Others may download and install the rights in the background.
The call should not block execution, applications can wait for a notification if they are interested in the outcome.
If a rights request completes sucessfully it does not necessarily mean rights are available. It just means the request is complete.
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted.
Parameters
TRequestStatus & aStatus | Asynchronous request status. On completion this will contain one of the following error codes: KErrNone if the rights request was successful. KErrCANotSupported if the agent does not allow rights requests. Otherwise one of the other CAF error codes defined in caferr.h or one of the other system-wide error codes for any other errors. |
const TDesC & aUniqueId | The unique id of the object within the file. |
Search(RStreamablePtrArray< CEmbeddedObject > &, const TDesC8 &, TBool)
Search the current container for content objects with a particular mime type
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
Parameters
RStreamablePtrArray< CEmbeddedObject > & aArray | The array to store the results of the search. The agent will add CEmbeddedObject objects to the supplied array. |
const TDesC8 & aMimeType | The mime type to search for. |
TBool aRecursive | ETrue to search inside containers embedded within the current container, EFalse to search only the current container. |
SetProperty(TAgentProperty, TInt)
Allows an application to request the modification of a property within the agent handling this content. The agent may or may not permit the property to be changed
-
capability
- DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted
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.