44
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0""
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
/*
|
|
28 |
* ============================================================================
|
|
29 |
* Name : CAknFepPredictiveSettingData from AknFepPredictiveSettingData.h
|
|
30 |
* ============================================================================
|
|
31 |
*/
|
|
32 |
|
|
33 |
#ifndef __AKN_FEP_PREDICTIVESETTING_DATA_H
|
|
34 |
#define __AKN_FEP_PREDICTIVESETTING_DATA_H
|
|
35 |
|
|
36 |
#include <e32base.h>
|
|
37 |
#include <PtiDefs.h>
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Class: CAknFepPredictiveSettingData
|
|
41 |
*
|
|
42 |
* Discussion: An aggregate class containing data for all editing controls
|
|
43 |
* This class is used as a central respository for all data
|
|
44 |
* to be displayed and editted within this app.
|
|
45 |
*/
|
|
46 |
class CAknFepPredictiveSettingData : public CBase
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
/**
|
|
50 |
* Function: NewL
|
|
51 |
*
|
|
52 |
* Discussion: Factory function used to create a new instance of
|
|
53 |
* CAknFepPredictiveSettingData
|
|
54 |
*
|
|
55 |
* Returns: A newly created instance of CAknFepPredictiveSettingData with all data
|
|
56 |
* items valid
|
|
57 |
*/
|
|
58 |
static CAknFepPredictiveSettingData* NewL();
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Function: NewLC
|
|
62 |
*
|
|
63 |
* Discussion: Factory function used to create a new instance of
|
|
64 |
* CAknFepPredictiveSettingData and leave a pointer to it on the cleanup
|
|
65 |
* stack
|
|
66 |
*
|
|
67 |
* Returns: A newly created instance of CAknFepPredictiveSettingData with all data
|
|
68 |
* items valid
|
|
69 |
*/
|
|
70 |
static CAknFepPredictiveSettingData* NewLC();
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Function: ~CAknFepPredictiveSettingData
|
|
74 |
*
|
|
75 |
* Discussion: Virtual destructor for CAknFepPredictiveSettingData. Ensures that all
|
|
76 |
* allocated memory is returned to the heap before deletion
|
|
77 |
* of object.
|
|
78 |
*
|
|
79 |
*/
|
|
80 |
virtual ~CAknFepPredictiveSettingData();
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Function: LoadL
|
|
84 |
*
|
|
85 |
* Discussion: Loads itself with parameters passed.
|
|
86 |
*
|
|
87 |
*/
|
|
88 |
void LoadL(TInt aAutoWordCompl,
|
|
89 |
TInt aTypingCorrection,
|
|
90 |
TInt aNumberCandidates,
|
|
91 |
TInt aPrimaryCandidate,
|
|
92 |
TInt aPhysicalKeyboards,
|
|
93 |
TInt aAWCBitmask);
|
|
94 |
|
|
95 |
/**
|
|
96 |
* Function: SaveL
|
|
97 |
*
|
|
98 |
* Discussion: Saves itself.
|
|
99 |
*
|
|
100 |
*/
|
|
101 |
void SaveL() const;
|
|
102 |
|
|
103 |
/**
|
|
104 |
* Function: AutoWordCompl
|
|
105 |
*
|
|
106 |
* Discussion: Trivial accessor function
|
|
107 |
*
|
|
108 |
* Returns: A reference to the iAutoWordCompl member
|
|
109 |
*/
|
|
110 |
inline TInt& AutoWordCompl() {return iAutoWordCompl; }
|
|
111 |
|
|
112 |
/**
|
|
113 |
* Function: TypingCorrection
|
|
114 |
*
|
|
115 |
* Discussion: Trivial accessor function
|
|
116 |
*
|
|
117 |
* Returns: A reference to the iTypingCorrection member
|
|
118 |
*/
|
|
119 |
inline TInt& TypingCorrection() { return iTypingCorrection; }
|
|
120 |
|
|
121 |
|
|
122 |
/**
|
|
123 |
* Function: NumberCandidates
|
|
124 |
*
|
|
125 |
* Discussion: Trivial accessor function
|
|
126 |
*
|
|
127 |
* Returns: A reference to the iNumberCandidates member
|
|
128 |
*/
|
|
129 |
inline TInt& NumberCandidates() {return iNumberCandidates; }
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Function: PrimaryCandidate
|
|
133 |
*
|
|
134 |
* Discussion: Trivial accessor function
|
|
135 |
*
|
|
136 |
* Returns: A reference to the iPrimaryCandidate member
|
|
137 |
*/
|
|
138 |
inline TInt& PrimaryCandidate() {return iPrimaryCandidate; }
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Function: PhysicalKeyboards
|
|
142 |
*
|
|
143 |
* Discussion: Trivial accessor function
|
|
144 |
*
|
|
145 |
* Returns: Value of iPhysicalKeyboards member
|
|
146 |
*/
|
|
147 |
inline TInt PhysicalKeyboards() {return iPhysicalKeyboards; }
|
|
148 |
|
|
149 |
/**
|
|
150 |
* Function: AWCBitmask
|
|
151 |
*
|
|
152 |
* Discussion: Trivial accessor function
|
|
153 |
*
|
|
154 |
* Returns: Value of iPhysicalKeyboards member
|
|
155 |
*/
|
|
156 |
inline TInt& AWCBitmask() {return iAWCBitmask; }
|
|
157 |
|
|
158 |
TPtiKeyboardType ActiveKeyboardType() const;
|
|
159 |
|
|
160 |
TPtiKeyboardType OwnerKeyboardType() const;
|
|
161 |
|
|
162 |
private:
|
|
163 |
/**
|
|
164 |
* Function: CAknFepPredictiveSettingData
|
|
165 |
*
|
|
166 |
* Discussion: Hidden, first-stage non-leaving constructor.
|
|
167 |
*
|
|
168 |
*/
|
|
169 |
CAknFepPredictiveSettingData();
|
|
170 |
|
|
171 |
/**
|
|
172 |
* Function: ConstructL
|
|
173 |
*
|
|
174 |
* Discussion: Hidden, second-stage possibly-leaving constructor.
|
|
175 |
*
|
|
176 |
*/
|
|
177 |
void ConstructL();
|
|
178 |
|
|
179 |
|
|
180 |
public:
|
|
181 |
TInt iAutoWordCompl; /* Data for AutoWordCompl field */
|
|
182 |
TInt iTypingCorrection; /* Data for TypingCorrection text field */
|
|
183 |
TInt iNumberCandidates; /* Data for NumberCandidates field */
|
|
184 |
TInt iPrimaryCandidate; /* Data for PrimaryCandidate field */
|
|
185 |
TInt iPhysicalKeyboards; /* Data for PhysicalKeyboards field */
|
|
186 |
TInt iAWCBitmask; /* AWC data in bitmask form */
|
|
187 |
|
|
188 |
};
|
|
189 |
|
|
190 |
#endif // __AKN_FEP_PREDICTIVESETTING_DATA_H
|
|
191 |
|