CAknsStringItemData Class Reference
#include
<mw/AknsItemData.h>
Link against: AknSkins.lib
class CAknsStringItemData : public CAknsItemData |
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.
Member Attribute Documentation
iString
HBufC * | iString | [protected] |
Constructor & Destructor Documentation
CAknsStringItemData ( const TAknsItemType )
Parameter | Description | aType | Item 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 ( )
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 void | SetStringL | ( | const TDesC & | aValue | ) | |
Sets the string value of this item data instance.
Parameter | Description | aValue | New 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.
Returns: Reference to the value.