#include <caf/attributeset.h>
class ContentAccess::RAttributeSet |
Public Member Functions | |
---|---|
RAttributeSet() | |
IMPORT_C void | AddL(TInt) |
IMPORT_C void | Close() |
IMPORT_C TInt | Count() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C TInt | GetValue(TInt, TInt &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TInt | SetValue(TInt, TInt, TInt) |
IMPORT_C TInt | operator[](TInt) |
Holds the values of a predefined set of attributes based upon ContentAccess::TAttribute
It is also possible for an agent to provide an extended set of these attributes beyond EAgentSpecificAttributeBase but only applications written to support that particular agent will support this.
No duplicate attributes are allowed in the set
IMPORT_C void | AddL | ( | TInt | aAttribute | ) |
Add a new attribute to the set The attribute is initalised with a default value of EAttributeNotSupported
Parameter | Description |
---|---|
aAttribute | The attribute to add to the set |
IMPORT_C void | Close | ( | ) |
Release all resources used by the RAttributeSet
This must be called before the RAttribute set goes out of scope
IMPORT_C TInt | Count | ( | ) | const |
The number of attributes in the set
Returns: The number of attributes in the set
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Write the RAttributeSet to a stream
Parameter | Description |
---|---|
aStream | The stream to write the attribute set to |
Get the value of a specified attribute
Parameter | Description |
---|---|
aAttribute | The attribute to query |
aValue | The value of the attribute |
Returns: Whether the value parameter was updated KErrNone The attribute value was updated KErrNotFound The attribute is not part of the set
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Read the RAttributeSet from a stream This does not clear the contents of the attribute set before reading. The values of any attributes already in the set are updated with new values from the stream. New attributes from the stream and their values are added to the set.
Parameter | Description |
---|---|
aStream | The stream to read the attribute set from |
Set the value of an attribute within the set
Parameter | Description |
---|---|
aAttribute | The attribute to set |
aValue | The value of the attribute |
aErrorCode | The error code to return when this attribute is requested via the GetValue() function |
Returns: Whether the new attribute value was set KErrNone if the value was set KErrNotFound if the attribute is not part of the set