|
||
class CFepGenericGlobalSettings : public CBase;
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 CFepGenericGlobalSettings::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 CFepGenericGlobalSettings::StoreChangesAndBroadcastL()
by another running instance of the FEP.
CBase
-
Base class for all classes to be instantiated on the heap.
CFepGenericGlobalSettings
- Reads and writes generic FEP settings.
Defined in CFepGenericGlobalSettings
:
IsOn()const
Tests whether the FEP is on or off.NewL()
Allocates and constructs a new generic FEP settings object.NewL(CCoeEnv &,const TFepOnOrOffKeyData &,const TFepOnOrOffKeyData &,TBool)
Allocates and constructs a new generic FEP settings object.NewLC()
Allocates and constructs a new generic FEP settings object.NewLC(CCoeEnv &,const TFepOnOrOffKeyData &,const TFepOnOrOffKeyData &,TBool)
Allocates and constructs a new generic FEP settings object.OffKeyData()const
Gets the key event data which turns the FEP off.OnKeyData()const
Gets the key event data which turns the FEP on.RefreshL()
Reads the generic FEP data from the system settings.SetIsOn(TBool)
Sets a flag indicating whether the FEP is on or off.SetOffKeyData(const TFepOnOrOffKeyData &)
Sets the key event data which turns the FEP off.SetOnKeyData(const TFepOnOrOffKeyData &)
Sets the key event data which turns the FEP on.StoreChangesAndBroadcastL()
Stores the local copies of the generic FEP data as the system settings.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Interface status: | deprecated |
IMPORT_C 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.
|
|
Interface status: | deprecated |
IMPORT_C 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.
|
|
IMPORT_C static CFepGenericGlobalSettings* NewL();
Allocates and constructs a new generic FEP settings object.
Reads the generic FEP data from the system settings.
|
IMPORT_C static CFepGenericGlobalSettings* NewLC();
Allocates and constructs a new generic FEP settings object.
Reads the generic FEP data from the system settings. Leaves a pointer to the object on the cleanup stack.
|
IMPORT_C TFepOnOrOffKeyData OnKeyData() const;
Gets the key event data which turns the FEP on.
|
IMPORT_C void SetOnKeyData(const TFepOnOrOffKeyData &aOnKeyData);
Sets the key event data which turns the FEP on.
|
IMPORT_C TFepOnOrOffKeyData OffKeyData() const;
Gets the key event data which turns the FEP off.
|
IMPORT_C void SetOffKeyData(const TFepOnOrOffKeyData &aOffKeyData);
Sets the key event data which turns the FEP off.
|
IMPORT_C TBool IsOn() const;
Tests whether the FEP is on or off.
|
IMPORT_C void SetIsOn(TBool aIsOn);
Sets a flag indicating whether the FEP is on or off.
|
Capability: | WriteDeviceData | To prevent corruption of FEP settings. |
IMPORT_C 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.
IMPORT_C 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 CFepGenericGlobalSettings::NewL()
).
This function is called during construction of the object.