Location:
coeinput.h
Link against: cone.lib
TCoeInputCapabilities
Supported from 6.0
Describes which forms of text input are consumed by a control or view
Defined in TCoeInputCapabilities
:
Anonymous
, Capabilities()
, CaptionRetrieverForFep()
, EAllText
, EDialableCharacters
, EJapaneseHiragana
, EJapaneseKatakanaFullWidth
, EJapaneseKatakanaHalfWidth
, ENavigation
, ENone
, ESecretText
, EWesternAlphabetic
, EWesternNumericIntegerNegative
, EWesternNumericIntegerPositive
, EWesternNumericReal
, FepAwareTextEditor()
, FepSpecificExtensions()
, IsNone()
, MergeWith()
, SetCapabilities()
, SupportsAllText()
, SupportsDialableCharacters()
, SupportsJapaneseHiragana()
, SupportsJapaneseKatakanaFullWidth()
, SupportsJapaneseKatakanaHalfWidth()
, SupportsNavigation()
, SupportsSecretText()
, SupportsWesternAlphabetic()
, SupportsWesternNumericIntegerNegative()
, SupportsWesternNumericIntegerPositive()
, SupportsWesternNumericReal()
, TCoeInputCapabilities()
, operator!=()
, operator=()
, operator==()
TCoeInputCapabilities(TUint aCapabilities);
Constructor which sets capabilities. The new object has NULL pointers to FEP aware text editor and FEP caption retriever objects.
|
TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep);
Constructor which sets capabilities, a FEP aware text editor and a FEP caption retriever object.
|
TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep, TUid aFepUid, MCoeFepSpecificExtensions* aFepSpecificExtensions);
Constructor which sets capabilities, a FEP aware text editor, a FEP caption retriever object, a FEP UID and an FEP specific extensions object.
This overload is provided to allow an application to report its
specialised input-capabilities, if any, to a FEP. The application should
override CCoeControl::InputCapabilities
and/or
CCoeAppUi::InputCapabilities
), to return a
TCoeInputCapabilities
object created using this overload —
passing the FEP's UID (as published in its header file) and the address of a
MCoeFepSpecificExtensions
object.
Note:
A brief description of the FEP specific extensions framework is provided in the linked topic below.
|
TCoeInputCapabilities(const TCoeInputCapabilities& aAnother);
Copy constructor. Constructs this object using the capabilities of another instance.
|
MCoeCaptionRetrieverForFep* CaptionRetrieverForFep() const;
Gets the caption retriever pointed to by this object.
|
MCoeFepAwareTextEditor* FepAwareTextEditor() const;
Gets the FEP aware text editor object pointed to by this object.
|
TBool IsNone() const;
Tests whether the control supports any type of text input.
|
void MergeWith(const TCoeInputCapabilities& aAnother);
Merges the capabilities of a
specifiedTCoeInputCapabilities
with this object. The capabilities
are merged with a logical OR. The pointers to a FEP aware text editor and to a
caption retriever for a FEP are merged only if this object has NULL
pointers.
|
TBool SupportsAllText() const;
Tests whether the control supports all types of text input.
|
TBool SupportsDialableCharacters() const;
Tests whether the control supports dialable characters as text input.
|
TBool SupportsJapaneseHiragana() const;
Tests whether the control supports text input in Japanese Hiragana.
|
TBool SupportsJapaneseKatakanaFullWidth() const;
Tests whether the control supports text input in full width Japanese Katakana.
|
TBool SupportsJapaneseKatakanaHalfWidth() const;
Tests whether the control supports text input in half width Japanese Katakana.
|
TBool SupportsNavigation() const;
Tests whether the control supports navigation keys.
|
TBool SupportsSecretText() const;
Tests whether the control supports secret text.
|
TBool SupportsWesternAlphabetic() const;
Tests whether the control supports entry of text in the western alphabets.
|
TBool SupportsWesternNumericIntegerNegative() const;
Tests whether the control supports entry of negative integers.
|
TBool SupportsWesternNumericIntegerPositive() const;
Tests whether the control supports entry of positive integers.
|
TBool SupportsWesternNumericReal() const;
Tests whether the control supports entry of real numbers.
|
TBool operator!=(const TCoeInputCapabilities& aAnother) const;
Inequality operator. This operator compares this
andaAnother
for inequality.
|
|
TCoeInputCapabilities& operator=(const TCoeInputCapabilities& aAnother);
Equals operator. This copies the capabilities ofaAnother
into
this object.
|
|
TBool operator==(const TCoeInputCapabilities& aAnother) const;
Equality operator. This operator compares this
andaAnother
for equality.
|
|
void SetCapabilities(TUint aCapabilities);
Sets the input-capability flags of this object.
|
TUint Capabilities() const;
Gets the input-capability flags of this object.
|
MCoeFepSpecificExtensions* FepSpecificExtensions(TUid aFepUid) const;
Gets the specialised input-capabilities of the application.
This function is called by the FEP and returns the specialised capabilities supported by the application. If the application has no specialised input capabilities, or if the application does not “know” about this FEP, the function returns NULL.
Note:
The application only knows about one FEP — the one that was written to
implement its specialised capabilities. If aFepUid does not match the UID of
this known FEP then NULL
is returned.
If a MCoeFepSpecificExtensions
is returned, the FEP then
calls the supported extension functions in the application — via its virtual
interface. The functions return some value — which, depending on the current
context, may instruct the FEP to perform some actions.
Background information:
The specialised capabilities are defined as pure virtual functions in the concrete FEP’s MCoeFepSpecificExtensions interface, and are implemented by the app UI.
When the focus in the app UI changes, the FEP queries the application’s capabilities using CCoeControl::InputCapabilities and/or CCoeAppUi::InputCapabilities. It then gets the extensions using FepSpecificExtensions() (this function).
The FEP then calls any member functions of
MCoeFepSpecificExtensions
that it needs to (to inquire about the
extended capabilities). The functions return a value to the FEP instructing it
to perform an action, if that extended functionality is appropriate to the
current state of the application.
|
|
Anonymous
Text input capability flags. These are used to define the text input capabilities of a control or view.
|