#include <mw/fepbconfig.h>
Link against: fepbase.lib
class CFepGenericGlobalSettings : public CBase |
Public Member Functions | |
---|---|
IMPORT_C TBool | IsOn() |
IMPORT_C CFepGenericGlobalSettings * | NewL(CCoeEnv &, const TFepOnOrOffKeyData &, const TFepOnOrOffKeyData &, TBool) |
IMPORT_C CFepGenericGlobalSettings * | NewL() |
IMPORT_C CFepGenericGlobalSettings * | NewLC(CCoeEnv &, const TFepOnOrOffKeyData &, const TFepOnOrOffKeyData &, TBool) |
IMPORT_C CFepGenericGlobalSettings * | NewLC() |
IMPORT_C TFepOnOrOffKeyData | OffKeyData() |
IMPORT_C TFepOnOrOffKeyData | OnKeyData() |
IMPORT_C void | ReadOnOrOffKeyData(CRepository &, TFepOnOrOffKeyData &, TUint32, TInt *) |
IMPORT_C void | ReadOnState(CRepository &, TBool &, TInt *) |
IMPORT_C void | RefreshL() |
IMPORT_C void | SetIsOn(TBool) |
IMPORT_C void | SetOffKeyData(const TFepOnOrOffKeyData &) |
IMPORT_C void | SetOnKeyData(const TFepOnOrOffKeyData &) |
IMPORT_C void | StoreChangesAndBroadcastL() |
IMPORT_C void | WriteOnOrOffKeyDataAndBroadcastL(CRepository &, const TFepOnOrOffKeyData &, TUint32) |
IMPORT_C void | WriteOnStateAndBroadcastL(CRepository &, TBool, TUint32) |
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.
IMPORT_C TBool | IsOn | ( | ) | const |
Tests whether the FEP is on or off.
IMPORT_C CFepGenericGlobalSettings * | NewL | ( | CCoeEnv & | aConeEnvironment, |
const TFepOnOrOffKeyData & | aDefaultOnKeyData, | |||
const TFepOnOrOffKeyData & | aDefaultOffKeyData, | |||
TBool | aDefaultIsOn | |||
) | [static] |
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.
Deprecated
Parameters | |
---|---|
aConeEnvironment | The FEP's control environment. |
aDefaultOnKeyData | Default key event data for switching the FEP on. |
aDefaultOffKeyData | Default key event data for switching the FEP off. |
aDefaultIsOn | Whether the FEP is on or off by default. |
IMPORT_C CFepGenericGlobalSettings * | NewL | ( | ) | [static] |
Allocates and constructs a new generic FEP settings object.
Reads the generic FEP data from the system settings.
IMPORT_C CFepGenericGlobalSettings * | NewLC | ( | CCoeEnv & | aConeEnvironment, |
const TFepOnOrOffKeyData & | aDefaultOnKeyData, | |||
const TFepOnOrOffKeyData & | aDefaultOffKeyData, | |||
TBool | aDefaultIsOn | |||
) | [static] |
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.
Deprecated
Parameters | |
---|---|
aConeEnvironment | The FEP's control environment. |
aDefaultOnKeyData | Default key event data for switching the FEP on. |
aDefaultOffKeyData | Default key event data for switching the FEP off. |
aDefaultIsOn | Whether the FEP is on or off by default. |
IMPORT_C CFepGenericGlobalSettings * | NewLC | ( | ) | [static] |
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 | OffKeyData | ( | ) | const |
Gets the key event data which turns the FEP off.
IMPORT_C TFepOnOrOffKeyData | OnKeyData | ( | ) | const |
Gets the key event data which turns the FEP on.
IMPORT_C void | ReadOnOrOffKeyData | ( | CRepository & | aRepository, |
TFepOnOrOffKeyData & | aOnOrOffKeyData, | |||
TUint32 | aRepositoryKeyMask_OnOrOff, | |||
TInt * | aError = NULL | |||
) | [static] |
IMPORT_C void | ReadOnState | ( | CRepository & | aRepository, |
TBool & | aOnState, | |||
TInt * | aError = NULL | |||
) | [static] |
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 NewL()).
This function is called during construction of the object.
IMPORT_C void | SetIsOn | ( | TBool | aIsOn | ) |
Sets a flag indicating whether the FEP is on or off.
Parameters | |
---|---|
aIsOn | ETrue if the FEP is on, EFalse if the FEP is off. |
IMPORT_C void | SetOffKeyData | ( | const TFepOnOrOffKeyData & | aOffKeyData | ) |
Sets the key event data which turns the FEP off.
Parameters | |
---|---|
aOffKeyData | The key event data which turns the FEP off. |
IMPORT_C void | SetOnKeyData | ( | const TFepOnOrOffKeyData & | aOnKeyData | ) |
Sets the key event data which turns the FEP on.
Parameters | |
---|---|
aOnKeyData | The key event data which turns the FEP on. |
IMPORT_C void | StoreChangesAndBroadcastL | ( | ) |
Stores the local copies of the generic FEP data as the system settings.
Capability | |
---|---|
WriteDeviceData | To prevent corruption of FEP settings. |
IMPORT_C void | WriteOnOrOffKeyDataAndBroadcastL | ( | CRepository & | aRepository, |
const TFepOnOrOffKeyData & | aOnOrOffKeyData, | |||
TUint32 | aRepositoryKey | |||
) | [static] |
IMPORT_C void | WriteOnStateAndBroadcastL | ( | CRepository & | aRepository, |
TBool | aOnState, | |||
TUint32 | aRepositoryKeyMask_DefaultOrDynamic | |||
) | [static] |