williamr@2
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#ifndef __COEINPUT_H__
|
williamr@2
|
17 |
#define __COEINPUT_H__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <e32std.h>
|
williamr@2
|
20 |
|
williamr@2
|
21 |
// classes defined in FEPBASE, declared here
|
williamr@2
|
22 |
class MCoeFepAwareTextEditor;
|
williamr@2
|
23 |
class MCoeCaptionRetrieverForFep;
|
williamr@2
|
24 |
|
williamr@2
|
25 |
class MObjectProvider;
|
williamr@2
|
26 |
|
williamr@2
|
27 |
class TCoeInputCapabilities
|
williamr@2
|
28 |
/** Describes which forms of text input are consumed by a control or view.
|
williamr@2
|
29 |
|
williamr@2
|
30 |
@publishedAll
|
williamr@2
|
31 |
@released */
|
williamr@2
|
32 |
{
|
williamr@2
|
33 |
public:
|
williamr@2
|
34 |
/** Text input capability flags. These are used to define the text input
|
williamr@2
|
35 |
capabilities of a control or view. */
|
williamr@2
|
36 |
enum
|
williamr@2
|
37 |
{
|
williamr@2
|
38 |
/** No text input capabilities supported. */
|
williamr@2
|
39 |
ENone =0,
|
williamr@2
|
40 |
/** Supports positive western integers. */
|
williamr@2
|
41 |
EWesternNumericIntegerPositive =0x00000001,
|
williamr@2
|
42 |
/** Supports negative western integers. */
|
williamr@2
|
43 |
EWesternNumericIntegerNegative =0x00000002,
|
williamr@2
|
44 |
/** Supports real numbers. */
|
williamr@2
|
45 |
EWesternNumericReal =0x00000004,
|
williamr@2
|
46 |
/** Supports the western alphabets. */
|
williamr@2
|
47 |
EWesternAlphabetic =0x00000008,
|
williamr@2
|
48 |
/** Supports Hiragana. */
|
williamr@2
|
49 |
EJapaneseHiragana =0x00000010,
|
williamr@2
|
50 |
/** Supports half width Katakana. */
|
williamr@2
|
51 |
EJapaneseKatakanaHalfWidth =0x00000020,
|
williamr@2
|
52 |
/** Supports full width Katakana. */
|
williamr@2
|
53 |
EJapaneseKatakanaFullWidth =0x00000040,
|
williamr@2
|
54 |
/** Supports dialable characters */
|
williamr@2
|
55 |
EDialableCharacters =0x00000080,
|
williamr@2
|
56 |
/** Supports secret text. This is text in which characters appear
|
williamr@2
|
57 |
as asterisks. */
|
williamr@2
|
58 |
ESecretText =0x00000100,
|
williamr@2
|
59 |
/** Supports auto sentence case.
|
williamr@2
|
60 |
This is text in which first word in a sentence begins with an uppercase letter,
|
williamr@2
|
61 |
with all other letters and words in lowercase. */
|
williamr@2
|
62 |
EAutoSentenceCase =0x00000200,
|
williamr@2
|
63 |
/** Supports non-predictive input. */
|
williamr@2
|
64 |
ENonPredictive =0x00000400,
|
williamr@2
|
65 |
/** Supports all types of text. */
|
williamr@2
|
66 |
EAllText =0x01000000,
|
williamr@2
|
67 |
/** Supports navigation keys. These include arrow keys, page-up,
|
williamr@2
|
68 |
page-down, home, end, tab, etc. */
|
williamr@2
|
69 |
ENavigation =0x02000000
|
williamr@2
|
70 |
};
|
williamr@2
|
71 |
class MCoeFepSpecificExtensions; // to be defined by concrete FEPs, declared here
|
williamr@2
|
72 |
public:
|
williamr@2
|
73 |
// all these functions are exported (rather than inline) so that binary compatibility becomes easier to maintain
|
williamr@2
|
74 |
IMPORT_C TCoeInputCapabilities();
|
williamr@2
|
75 |
IMPORT_C TCoeInputCapabilities(TUint aCapabilities);
|
williamr@2
|
76 |
IMPORT_C TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep);
|
williamr@2
|
77 |
IMPORT_C TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep, TUid aFepUid, MCoeFepSpecificExtensions* aFepSpecificExtensions);
|
williamr@2
|
78 |
IMPORT_C TCoeInputCapabilities(const TCoeInputCapabilities& aAnother); // defined so that iSpareForFutureUse is not copied
|
williamr@2
|
79 |
IMPORT_C TCoeInputCapabilities& operator=(const TCoeInputCapabilities& aAnother); // defined so that iSpareForFutureUse is not copied
|
williamr@2
|
80 |
IMPORT_C TBool operator==(const TCoeInputCapabilities& aAnother) const; // defined so that iSpareForFutureUse is not tested
|
williamr@2
|
81 |
IMPORT_C TBool operator!=(const TCoeInputCapabilities& aAnother) const; // defined so that iSpareForFutureUse is not tested
|
williamr@2
|
82 |
IMPORT_C void MergeWith(const TCoeInputCapabilities& aAnother);
|
williamr@2
|
83 |
IMPORT_C void SetCapabilities(TUint aCapabilities);
|
williamr@2
|
84 |
IMPORT_C TUint Capabilities() const;
|
williamr@2
|
85 |
IMPORT_C TBool IsNone() const;
|
williamr@2
|
86 |
IMPORT_C TBool SupportsWesternNumericIntegerPositive() const;
|
williamr@2
|
87 |
IMPORT_C TBool SupportsWesternNumericIntegerNegative() const;
|
williamr@2
|
88 |
IMPORT_C TBool SupportsWesternNumericReal() const;
|
williamr@2
|
89 |
IMPORT_C TBool SupportsWesternAlphabetic() const;
|
williamr@2
|
90 |
IMPORT_C TBool SupportsJapaneseHiragana() const;
|
williamr@2
|
91 |
IMPORT_C TBool SupportsJapaneseKatakanaHalfWidth() const;
|
williamr@2
|
92 |
IMPORT_C TBool SupportsJapaneseKatakanaFullWidth() const;
|
williamr@2
|
93 |
IMPORT_C TBool SupportsDialableCharacters() const;
|
williamr@2
|
94 |
IMPORT_C TBool SupportsSecretText() const;
|
williamr@2
|
95 |
IMPORT_C TBool SupportsAutoSentenceCase() const;
|
williamr@2
|
96 |
IMPORT_C TBool SupportsNonPredictive() const;
|
williamr@2
|
97 |
IMPORT_C TBool SupportsAllText() const;
|
williamr@2
|
98 |
IMPORT_C TBool SupportsNavigation() const;
|
williamr@2
|
99 |
IMPORT_C MCoeFepAwareTextEditor* FepAwareTextEditor() const;
|
williamr@2
|
100 |
IMPORT_C MCoeCaptionRetrieverForFep* CaptionRetrieverForFep() const;
|
williamr@2
|
101 |
IMPORT_C MCoeFepSpecificExtensions* FepSpecificExtensions(TUid aFepUid) const;
|
williamr@2
|
102 |
IMPORT_C MObjectProvider* ObjectProvider() const;
|
williamr@2
|
103 |
IMPORT_C void SetObjectProvider(MObjectProvider* aObjectProvider);
|
williamr@2
|
104 |
|
williamr@2
|
105 |
private:
|
williamr@2
|
106 |
TUint iCapabilities;
|
williamr@2
|
107 |
MCoeFepAwareTextEditor* iFepAwareTextEditor;
|
williamr@2
|
108 |
MCoeCaptionRetrieverForFep* iCaptionRetrieverForFep;
|
williamr@2
|
109 |
TUint iFepUid;
|
williamr@2
|
110 |
MCoeFepSpecificExtensions* iFepSpecificExtensions;
|
williamr@2
|
111 |
MObjectProvider* iObjectProvider;
|
williamr@2
|
112 |
TAny* iSpareForFutureUse[5];
|
williamr@2
|
113 |
};
|
williamr@2
|
114 |
|
williamr@2
|
115 |
#endif // __COEINPUT_H__
|