CCoeStatic Class Reference

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.

Inherits from

Constructor & Destructor Documentation

CCoeStatic()

IMPORT_CCCoeStatic()[protected]

CCoeStatic(TUid, TScope)

IMPORT_CCCoeStatic(TUidaUid,
TScope = EThread
)[protected]

Parameters

TUid aUid
TScope  = EThread

CCoeStatic(TUid, TInt, TScope)

IMPORT_CCCoeStatic(TUidaUid,
TIntaDestructionPriority,
TScopeaScope = EThread
)[protected]

Parameters

TUid aUid
TInt aDestructionPriority
TScope aScope = EThread

~CCoeStatic()

IMPORT_C~CCoeStatic()

Member Functions Documentation

CCoeStatic_Reserved1()

IMPORT_C voidCCoeStatic_Reserved1()[private, virtual]

CCoeStatic_Reserved2()

IMPORT_C voidCCoeStatic_Reserved2()[private, virtual]

CsAppUi()

CCoeAppUi *CsAppUi()const [private]

CsScope()

TScope CsScope()const [private]

DestructionPriority()

TInt DestructionPriority()const [private, inline]

DoConstruction(const TUid &, TInt, TScope)

voidDoConstruction(const TUid &aUid,
TIntaDestructionPriority,
TScopeaScope
)[private]

Parameters

const TUid & aUid
TInt aDestructionPriority
TScope aScope

SetCsAppUi(CCoeAppUi *)

voidSetCsAppUi(CCoeAppUi *aAppUi)[private]

Parameters

CCoeAppUi * aAppUi

Member Enumerations Documentation

Enum TScope

Scope of access to the singleton object.

Enumerators

EThread

Access from the entire thread.

EApp

Access from an appUi in that thread.

Member Data Documentation

TInt iCCoeStatic_Reserved1

TInt iCCoeStatic_Reserved1[private]

TUint iCsAppUiAndScope

TUint iCsAppUiAndScope[private]

TPriQueLink iCsLink

TPriQueLink iCsLink[private]

TUid iCsUid

TUid iCsUid[private]