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.
Public Member Functions | |
---|---|
~CCoeStatic() |
Protected Member Functions | |
---|---|
CCoeStatic() | |
CCoeStatic(TUid, TScope) | |
CCoeStatic(TUid, TInt, TScope) |
Private Member Functions | |
---|---|
IMPORT_C void | CCoeStatic_Reserved1() |
IMPORT_C void | CCoeStatic_Reserved2() |
CCoeAppUi * | CsAppUi() |
TScope | CsScope() |
TInt | DestructionPriority() |
void | DoConstruction(const TUid &, TInt, TScope) |
void | SetCsAppUi(CCoeAppUi *) |
Public Member Enumerations | |
---|---|
enum | TScope { EThread, EApp } |
Private Attributes | |
---|---|
TInt | iCCoeStatic_Reserved1 |
TUint | iCsAppUiAndScope |
TPriQueLink | iCsLink |
TUid | iCsUid |
IMPORT_C | CCoeStatic | ( | TUid | aUid, |
TInt | aDestructionPriority, | |||
TScope | aScope = EThread | |||
) | [protected] |
void | DoConstruction | ( | const TUid & | aUid, |
TInt | aDestructionPriority, | |||
TScope | aScope | |||
) | [private] |
Scope of access to the singleton object.
EThread |
Access from the entire thread. |
EApp |
Access from an appUi in that thread. |