Location:
coemain.h
Link against: cone.lib
class CCoeStatic : public CBase;
Base class for creating singleton objects that will be stored by CCoeEnv
.
Each object must have a unique TUid
.
Symbian OS does not provide writeable global static data. Singleton objects provide its equivalent in thread local storage, which is supported.
This behaviour is useful for objects in which only one copy is ever needed in the thread or application, e.g. in alert windows.
CBase
- Base class for all classes to be instantiated on the heap
CCoeStatic
- Base class for creating singleton objects that will be stored by
Defined in CCoeStatic
:
CCoeStatic()
, CCoeStatic()
, CCoeStatic()
, CCoeStatic_Reserved1()
, CCoeStatic_Reserved2()
, EApp
, EDefaultDestructionPriority
, EThread
, TScope
, anonymous
, ~CCoeStatic()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
protected: IMPORT_C CCoeStatic(TUid aUid, TScope=EThread);
Constructor specifying a unique UID and the scope of the object.
|
protected: IMPORT_C CCoeStatic(TUid aUid, TInt aDestructionPriority, TScope aScope=EThread);
Constructor specifying a unique UID and the destruction priority and scope of the object.
|
TScope
Scope of access to the singleton object.
|
n/a
The default destruction priority if none is specified in the constructor
|