CAknsStringItemData Class Reference
class CAknsStringItemData : public CAknsItemData |
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.
AknSkins.lib
Constructor & Destructor Documentation
CAknsStringItemData(const TAknsItemType)
Parameters
const TAknsItemType 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 Functions 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.
SetStringL(const TDesC &)
IMPORT_C void | SetStringL | ( | const TDesC & | aValue | ) | |
Sets the string value of this item data instance.
Parameters
const TDesC & 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.
Member Data Documentation
HBufC * iString
HBufC * | iString | [protected] |
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.