CNcdAttributes Class Reference
class CNcdAttributes : public CBase |
Simple attribute container
Used for setting, getting, storing and loading simple attributes. Currently supports 16-bit descriptors and TInt32
Nested Classes and Structures
Constructor & Destructor Documentation
CNcdAttributes(TInt, TInt)
CNcdAttributes | ( | TInt | aUpperLimit, |
| TInt | aLowerLimit |
| ) | [protected] |
CNcdAttributes(const CNcdAttributes &)
~CNcdAttributes()
IMPORT_C | ~CNcdAttributes | ( | ) | [virtual] |
Member Functions Documentation
ArraySize()
TInt
| ArraySize | ( | ) | const [protected] |
AttributeInt32(TInt)
IMPORT_C TInt32 | AttributeInt32 | ( | TInt | aAttribute | ) | const |
TInt32 attribute getter
-
panic
- ENcdPanicIndexOutOfRange if aAttribute is not RangeLowerLimit() <= aAttribute < RangeUpperLimit()
-
panic
- ENcdPanicInvalidArgument if the attribute type is not EAttributeTypeInt32
AttributeString16(TInt)
IMPORT_C const TDesC & | AttributeString16 | ( | TInt | aAttribute | ) | const |
16-bit descriptor attribute getter
-
panic
- ENcdPanicIndexOutOfRange if aAttribute is not RangeLowerLimit() <= aAttribute < RangeUpperLimit()
-
panic
- ENcdPanicInvalidArgument if the attribute type is not EAttributeTypeString16
ClearAttributes()
void | ClearAttributes | ( | ) | [protected] |
ConstructL()
void | ConstructL | ( | ) | [protected] |
ConstructL(const CNcdAttributes &)
CopyAttributeL(const TAttribute &)
DeleteAttribute(TAttribute &)
void | DeleteAttribute | ( | TAttribute & | aAttribute | ) | [protected] |
ExternalizeAttributeL(const TAttribute &, RWriteStream &)
ExternalizeL(RWriteStream &)
InternalizeAttributeL(RReadStream &)
InternalizeL(RReadStream &)
NewL(TInt, TInt)
Parameters
TInt aUpperLimit | Upper attribute limit is NOT included in the range. Must be >= 0 and > aLowerLimit |
TInt aLowerLimit = 0 | |
NewL(RReadStream &, TInt, TInt)
Note:
If given upperlimit differs from the one read from the stream then the attribute range is adjusted for the given limit.
-
leave
- KErrArgument if aLowerLimit differs from the lower limit read from the stream
NewL(const CNcdAttributes &)
RangeLowerLimit()
IMPORT_C TInt | RangeLowerLimit | ( | ) | const |
RangeUpperLimit()
IMPORT_C TInt | RangeUpperLimit | ( | ) | const |
ResetAttributesL()
void | ResetAttributesL | ( | ) | [protected] |
SetAttributeL(TInt, TInt32)
IMPORT_C void | SetAttributeL | ( | TInt | aAttribute, |
| TInt32 | aValue |
| ) | |
TInt32 attribute setter
-
panic
- ENcdPanicIndexOutOfRange if aAttribute is not RangeLowerLimit() <= aAttribute < RangeUpperLimit()
-
panic
- ENcdPanicInvalidArgument if the attribute type is not EAttributeTypeInt32 or EAttributeTypeUndefined
SetAttributeL(TInt, const TDesC &)
IMPORT_C void | SetAttributeL | ( | TInt | aAttribute, |
| const TDesC & | aValue |
| ) | |
16-bit descriptor attribute setter
-
leave
- KErrNoMemory if memory runs out
-
panic
- ENcdPanicIndexOutOfRange if aAttribute is not RangeLowerLimit() <= aAttribute < RangeUpperLimit()
-
panic
- ENcdPanicInvalidArgument if the attribute type is not EAttributeTypeString16 or EAttributeTypeUndefined
Parameters
TInt aAttribute | Attribute |
const TDesC & aValue | Value |
operator=(const CNcdAttributes &)
Member Enumerations Documentation
Enum TAttributeType
Types of supported attributes
Enumerators
EAttributeTypeUndefined = 0 |
Attribute type is not set
|
EAttributeTypeInt32 |
Attribute is TInt32
|
EAttributeTypeString16 |
Attribute is a 16-bit descriptor
|
Member Data Documentation
RArray< TAttribute > iAttributes
TInt
iLowerLimit
TInt
| iLowerLimit | [private] |
TInt
iUpperLimit
TInt
| iUpperLimit | [private] |
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.