CAknsStringItemData Class Reference

#include <mw/AknsItemData.h>

Link against: AknSkins.lib

class CAknsStringItemData : public CAknsItemData

Inherits from

Detailed Description

String item data. String item data contains (in addition to base class members), a single string value. Item type for string item data objects is always EAknsITString.

This is a public class with exported functions. The class is not intended for derivation outside the library.

Since
2.6

Member Attribute Documentation

iString

HBufC *iString[protected]

Buffer for string value.

Constructor & Destructor Documentation

CAknsStringItemData ( const TAknsItemType )

CAknsStringItemData(const TAknsItemTypeaType)[protected]

C++ protected constructor. Constructs a new CAknsStringItemData without an array.

ParameterDescription
aTypeItem type of the new item data object. While this is always EAknsITString for instances of this class, derived classes may specify another value.

~CAknsStringItemData ( )

~CAknsStringItemData()[virtual]

Destructor. Destroys owned string instance.

Member Function Documentation

NewL ( )

IMPORT_C CAknsStringItemData *NewL()[static]

Two-phased constructor. Constructs a new CAknsStringItemData object. String value must be set separately using SetStringL.

Exceptions:
If allocation fails, function leaves with a system-wide error code.

Returns: Newly constructed CAknsStringItemData object.

SetStringL ( const TDesC & )

IMPORT_C voidSetStringL(const TDesC &aValue)

Sets the string value of this item data instance.

Since
2.6
ParameterDescription
aValueNew value. The value is copied to a newly created internal buffer, and any previous value is discarded.

String ( )

IMPORT_C const TDesC &String()const

Returns a reference to the string value. The value is still owned by the item data object and caller must take its lifetime properly into account.

Since
2.6

Returns: Reference to the value.