CAknsItemDef Class Reference
class CAknsItemDef : public CBase |
Base class for item definitions. Item definition maps item ID specified as TAknsItemID to a specific resource (such as bitmap filename and index). Content of the definition varies depending of the type of the resource.
CAknsItemDef does not itself have any dynamically allocated members. Therefore the members of its friend classes can instantiate CAknsItemDef into stack (e.g. to perform binary search with LineraOrder without heap allocation) using CAknsItemDef::CAknsItemDef(const TAknsItemID aID) constructor. Derived classes, however, require two-phased construction and proper destruction.
This is a public class with exported functions. The class is not intended for derivation outside the library.
AknSkinSrv.lib
Constructor & Destructor Documentation
CAknsItemDef(const TAknsItemType, const TAknsItemID &)
C++ constructor for derived classes. Constructs item definition object with given item type and ID, and localization type EAknsIDLTDefault.
CAknsItemDef(const TAknsItemID &)
C++ constructor for internal use. Constructs item definition object with specified ID and item type EAknsITUnknown, and localization type EAknsIDLTDefault.
Parameters
const TAknsItemID & aID | Item ID of the new item definition. |
~CAknsItemDef()
IMPORT_C | ~CAknsItemDef | ( | ) | [virtual] |
Destructor. Base-class destructor does nothing. It exists only to enable destruction of derived objects using pointer to base class object.
Member Functions Documentation
ID()
Returns the item ID of this item definition.
LinearOrder(const CAknsItemDef &, const CAknsItemDef &)
NewL(const TAknsItemID &)
Two-phased constructor. Constructs item definition object with specified ID, item type EAknsITUnknown and localization type EAknsIDLTDefault.
-
Exceptions:
- If allocation fails, function leaves with a system-wide error code.
Parameters
const TAknsItemID & aID | Item ID of the newly created item definition. |
Reserved1()
IMPORT_C void | Reserved1 | ( | ) | [private] |
Reserved2()
IMPORT_C void | Reserved2 | ( | ) | [private] |
Type()
Returns the item type of this item definition. This method can be used to provide run-time type information. Corresponding classes are listed in definition of TAknsItemType.
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.