Location:
fepbase.h
Link against: fepbase.lib
CFepGenericGlobalSettings
Supported from 6.0
Reads and writes generic FEP settings. Used by the
CCoeFep
class. The generic FEP settings are whether the FEP is on
or off and what key combinations should turn the FEP on or off. Also used to
synchronise these settings across all running instances of the FEP. These
settings are generic, unlike FEP attributes which are FEP-specific. FEP
attributes are stored, restored and synchronised using class
MFepAttributeStorer
. Generic FEP settings are changed locally
using the Set...()
member functions. Then, to store these as the
system settings and to apply them globally, call
StoreChangesAndBroadcastL()
.
Class CCoeFep
initialises its generic FEP settings
from the global system settings during construction. Its generic FEP settings
are updated when the settings are changed by a call to
StoreChangesAndBroadcastL()
by another running instance of the
FEP.
|
Defined in CFepGenericGlobalSettings
:
IsOn()
, NewL()
, NewLC()
, OffKeyData()
, OnKeyData()
, RefreshL()
, SetIsOn()
, SetOffKeyData()
, SetOnKeyData()
, StoreChangesAndBroadcastL()
Inherited from CBase
:
operator new()
static CFepGenericGlobalSettings* NewL(CCoeEnv& aConeEnvironment, const TFepOnOrOffKeyData& aDefaultOnKeyData, const TFepOnOrOffKeyData& aDefaultOffKeyData, TBool aDefaultIsOn);
Allocates and constructs a new generic FEP settings object. Reads the generic FEP data from the system settings. If the data is not present in the system settings, it is read from the default values specified.
|
|
static CFepGenericGlobalSettings* NewLC(CCoeEnv& aConeEnvironment, const TFepOnOrOffKeyData& aDefaultOnKeyData, const TFepOnOrOffKeyData& aDefaultOffKeyData, TBool aDefaultIsOn);
Allocates and constructs a new generic FEP settings object. Reads the generic FEP data from the system settings. If the data is not present in the system settings, it is read from the default values specified. Leaves a pointer to the object on the cleanup stack.
|
|
TFepOnOrOffKeyData OnKeyData() const;
Gets the key event data which turns the FEP on.
|
TFepOnOrOffKeyData OffKeyData() const;
Gets the key event data which turns the FEP off.
|
TBool IsOn() const;
Returns whether the FEP is on or off.
|
void SetOnKeyData(const TFepOnOrOffKeyData& aOnKeyData);
Sets the key event data which turns the FEP on.
|
void SetOffKeyData(const TFepOnOrOffKeyData& aOffKeyData);
Sets the key event data which turns the FEP off.
|
void SetIsOn(TBool aIsOn);
Sets whether the FEP is on or off.
|
void StoreChangesAndBroadcastL();
Stores the local copies of the generic FEP data as the system settings. Causes all other running instances of the FEP to be updated with the new settings.
void RefreshL();
Reads the generic FEP data from the system settings. If the FEP
data is not present in the system settings, then it is set from the default
values (as passed to the NewL()
).
This function is called during construction of the object.