CNcdKeyValuePair Class Reference
class CNcdKeyValuePair : public CBase |
A default implementation for the MNcdKeyValuePair interface, providing storage for the key and value in simple heap allocated buffers.
ncdutils_20019119.dll
MNcdKeyValuePair
Constructor & Destructor Documentation
CNcdKeyValuePair()
CNcdKeyValuePair | ( | ) | [private] |
~CNcdKeyValuePair()
~CNcdKeyValuePair | ( | ) | [virtual] |
Member Functions Documentation
ConstructL(const TDesC &, const TDesC &)
void | ConstructL | ( | const TDesC & | aKey, |
| const TDesC & | aValue |
| ) | [private] |
Private 2nd phase constructor.
ExternalizeL(RWriteStream &)
Externalizes the pair to a stream
ExternalizeToDesLC()
IMPORT_C HBufC8 * | ExternalizeToDesLC | ( | ) | const |
Externalizes the pair to a descriptor
InternalizeL(RReadStream &)
Internalizes the pair from a stream
Key()
Returns the key set for the pair.
MatchByKey(const CNcdKeyValuePair &, const CNcdKeyValuePair &)
Comparison method. Compares the keys of two pairs to determine equivalence.
NewL(const TDesC &, const TDesC &)
Constructor.
- Exceptions
-
System |
wide error code.
|
KErrArgument |
if aKey is empty
|
Parameters
const TDesC & aKey | Key. Can not be empty |
const TDesC & aValue | Value. Can be an empty descriptor |
NewL(const MNcdKeyValuePair &)
Creates a copy of an key-value -pair.
NewL(RReadStream &)
Internalizes the key-value pair from a stream
NewLC(const TDesC &, const TDesC &)
Constructor, leaves pointer on clean-up stack.
- Exceptions
-
System |
wide error code.
|
KErrArgument |
if aKey is empty
|
Parameters
const TDesC & aKey | Key. Can not be empty |
const TDesC & aValue | Value. Can be an empty descriptor |
NewLC(const MNcdKeyValuePair &)
Creates a copy of the key-value -pair, leaves pointer on clean-up stack
NewLC(RReadStream &)
Internalizes the key-value pair from a stream
SetKeyL(const TDesC &)
IMPORT_C void | SetKeyL | ( | const TDesC & | aKey | ) | |
Set the key for the pair.
- Exceptions
-
KErrArgument |
if the key is empty
|
Parameters
const TDesC & aKey | Key for the pair. |
SetValueL(const TDesC &)
IMPORT_C void | SetValueL | ( | const TDesC & | aValue | ) | |
Set the value for the pair.
Parameters
const TDesC & aValue | value for the pair. |
Value()
const TDesC & | Value | ( | ) | const |
Returns the value set for the pair.
Member Data Documentation
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.