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
Public Member Functions | |
---|---|
~CNcdKeyValuePair () | |
IMPORT_C void | ExternalizeL ( RWriteStream &) |
IMPORT_C HBufC8 * | ExternalizeToDesLC () |
IMPORT_C void | InternalizeL ( RReadStream &) |
const TDesC & | Key () |
IMPORT_C TBool | MatchByKey (const CNcdKeyValuePair &, const CNcdKeyValuePair &) |
IMPORT_C CNcdKeyValuePair * | NewL (const TDesC &, const TDesC &) |
IMPORT_C CNcdKeyValuePair * | NewL (const MNcdKeyValuePair &) |
IMPORT_C CNcdKeyValuePair * | NewL ( RReadStream &) |
IMPORT_C CNcdKeyValuePair * | NewLC (const TDesC &, const TDesC &) |
IMPORT_C CNcdKeyValuePair * | NewLC (const MNcdKeyValuePair &) |
IMPORT_C CNcdKeyValuePair * | NewLC ( RReadStream &) |
IMPORT_C void | SetKeyL (const TDesC &) |
IMPORT_C void | SetValueL (const TDesC &) |
const TDesC & | Value () |
Private Member Functions | |
---|---|
CNcdKeyValuePair () | |
void | ConstructL (const TDesC &, const TDesC &) |
Private Attributes | |
---|---|
HBufC * | iKey |
HBufC * | iValue |
void | ConstructL | ( | const TDesC & | aKey, |
const TDesC & | aValue | |||
) | [private] |
Private 2nd phase constructor.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the pair to a stream
RWriteStream & aStream | Target stream |
IMPORT_C HBufC8 * | ExternalizeToDesLC | ( | ) | const |
Externalizes the pair to a descriptor
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalizes the pair from a stream
RReadStream & aStream | Source stream |
IMPORT_C TBool | MatchByKey | ( | const CNcdKeyValuePair & | aFirst, |
const CNcdKeyValuePair & | aSecond | |||
) | [static] |
Comparison method. Compares the keys of two pairs to determine equivalence.
const CNcdKeyValuePair & aFirst | |
const CNcdKeyValuePair & aSecond |
IMPORT_C CNcdKeyValuePair * | NewL | ( | const TDesC & | aKey, |
const TDesC & | aValue | |||
) | [static] |
Constructor.
System |
wide error code. |
KErrArgument |
if aKey is empty |
IMPORT_C CNcdKeyValuePair * | NewL | ( | const MNcdKeyValuePair & | aOther | ) | [static] |
Creates a copy of an key-value -pair.
const MNcdKeyValuePair & aOther | Pair to copy |
IMPORT_C CNcdKeyValuePair * | NewL | ( | RReadStream & | aStream | ) | [static] |
Internalizes the key-value pair from a stream
RReadStream & aStream |
IMPORT_C CNcdKeyValuePair * | NewLC | ( | const TDesC & | aKey, |
const TDesC & | aValue | |||
) | [static] |
Constructor, leaves pointer on clean-up stack.
System |
wide error code. |
KErrArgument |
if aKey is empty |
IMPORT_C CNcdKeyValuePair * | NewLC | ( | const MNcdKeyValuePair & | aOther | ) | [static] |
Creates a copy of the key-value -pair, leaves pointer on clean-up stack
const MNcdKeyValuePair & aOther | Pair to copy |
IMPORT_C CNcdKeyValuePair * | NewLC | ( | RReadStream & | aStream | ) | [static] |
Internalizes the key-value pair from a stream
RReadStream & aStream |
IMPORT_C void | SetKeyL | ( | const TDesC & | aKey | ) |
Set the key for the pair.
KErrArgument |
if the key is empty |
const TDesC & aKey | Key for the pair. |
IMPORT_C void | SetValueL | ( | const TDesC & | aValue | ) |
Set the value for the pair.
const TDesC & aValue | value for the pair. |
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.