class TFepOnOrOffKeyData |
On or off key data for FEPs.
The CCoeFep class uses instances of this class to specify the key combination which is used to turn the FEP on and off. These values are initialised during construction of the FEP (see CCoeFep::BaseConstructL()).
The class consists of three TUints. They represent:
the character code of the key combination
a modifier mask which indicates which modifiers are relevant to the key combination
the modifier values which indicate which of the modifiers specified in the modifier mask must be on and which must be off
For example, if the key combination to turn the FEP off is Fn+Enter, where the Shift modifier must not be down (and the state of all other modifiers is irrelevant), the TFepOnOrOffKeyData object would be constructed as follows:
TFepOnOrOffKeyData(EKeyEnter, EModifierFunc|EModifierShift, EModifierFunc)
Note that modifiers should not be set in the values if they are not also set in the mask.
Public Member Functions | |
---|---|
TFepOnOrOffKeyData(TUint, TUint, TUint) | |
TUint | CharacterCodeForFoldedMatch() |
TUint | ModifierMask() |
TUint | ModifierValues() |
IMPORT_C TBool | operator!=(const TFepOnOrOffKeyData &) |
IMPORT_C TBool | operator==(const TFepOnOrOffKeyData &) |
Private Attributes | |
---|---|
TUint | iCharacterCodeForFoldedMatch |
TUint | iModifierMask |
TUint | iModifierValues |
TFepOnOrOffKeyData | ( | TUint | aCharacterCodeForFoldedMatch, |
TUint | aModifierMask, | ||
TUint | aModifierValues | ||
) | [inline] |
The C++ constructor is used to construct the key data object with the character code, the modifier mask and the modifier values.
TUint | CharacterCodeForFoldedMatch | ( | ) | const [inline] |
Gets the character code.
IMPORT_C TBool | operator!= | ( | const TFepOnOrOffKeyData & | aAnother | ) | const |
Checks if 2 TFepOnOrOffKeyData objects do not have the the same values.
returns Etrue if the 2 objects have the same values, EFalse otherwise
const TFepOnOrOffKeyData & aAnother |
IMPORT_C TBool | operator== | ( | const TFepOnOrOffKeyData & | aAnother | ) | const |
Checks if 2 TFepOnOrOffKeyData objects have the same values.
returns Etrue if the 2 objects have the same values, EFalse otherwise
const TFepOnOrOffKeyData & aAnother |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.