|
1 /* |
|
2 * Copyright (c) 2003 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: Inline methods for user dictionary class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // CPtiUserDictionary::SetFileName |
|
34 // |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 inline void CPtiUserDictionary::SetFileName(TDesC& aFileName) |
|
38 { |
|
39 iFileName.Copy(aFileName); |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // CPtiUserDictionary::Id |
|
44 // |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 inline TInt CPtiUserDictionary::Id() const |
|
48 { |
|
49 return iId; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // CPtiUserDictionary::SetId |
|
54 // |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 inline void CPtiUserDictionary::SetId(TInt aId) |
|
58 { |
|
59 iId = aId; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // CPtiUserDictionary::Size |
|
64 // |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 inline TInt CPtiUserDictionary::Size() const |
|
68 { |
|
69 return iData->Length(); |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // CPtiUserDictionary::CoreUID |
|
74 // |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 inline TInt32 CPtiUserDictionary::CoreUID() const |
|
78 { |
|
79 return iCoreUID; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CPtiUserDictionary::SetCoreUID |
|
84 // |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 inline void CPtiUserDictionary::SetCoreUID(TInt32 aUid) |
|
88 { |
|
89 iCoreUID = aUid; |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------------------------- |
|
93 // CPtiUserDictionary::Data |
|
94 // |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 inline TPtr8 CPtiUserDictionary::Data() |
|
98 { |
|
99 return TPtr8(iData->Des()); |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // CPtiUserDictionary::IsDefault |
|
104 // |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 inline TBool CPtiUserDictionary::IsDefault() const |
|
108 { |
|
109 return iDefault; |
|
110 } |
|
111 |
|
112 // --------------------------------------------------------------------------- |
|
113 // CPtiUserDictionary::SetDefault |
|
114 // |
|
115 // --------------------------------------------------------------------------- |
|
116 // |
|
117 inline void CPtiUserDictionary::SetDefault(TBool aValue) |
|
118 { |
|
119 iDefault = aValue; |
|
120 } |
|
121 |
|
122 // --------------------------------------------------------------------------- |
|
123 // CPtiUserDictionary::FileName |
|
124 // |
|
125 // --------------------------------------------------------------------------- |
|
126 // |
|
127 inline TPtrC CPtiUserDictionary::FileName() const |
|
128 { |
|
129 return TPtrC(iFileName); |
|
130 } |
|
131 |
|
132 // --------------------------------------------------------------------------- |
|
133 // CPtiUserDictionary::UpdateFlag |
|
134 // |
|
135 // --------------------------------------------------------------------------- |
|
136 // |
|
137 inline TBool CPtiUserDictionary::UpdateFlag() const |
|
138 { |
|
139 return iUpdateFlag; |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------------------------- |
|
143 // CPtiUserDictionary::SetUpdateFlag |
|
144 // |
|
145 // --------------------------------------------------------------------------- |
|
146 // |
|
147 inline void CPtiUserDictionary::SetUpdateFlag(TBool aFlag) |
|
148 { |
|
149 iUpdateFlag = aFlag; |
|
150 } |
|
151 |
|
152 // --------------------------------------------------------------------------- |
|
153 // CPtiUserDictionary::SymbolClass |
|
154 // |
|
155 // --------------------------------------------------------------------------- |
|
156 // |
|
157 inline TInt CPtiUserDictionary::SymbolClass() const |
|
158 { |
|
159 return iSymbolClass; |
|
160 } |
|
161 |
|
162 // --------------------------------------------------------------------------- |
|
163 // CPtiUserDictionary::SetSymbolClass |
|
164 // |
|
165 // --------------------------------------------------------------------------- |
|
166 // |
|
167 inline void CPtiUserDictionary::SetSymbolClass(TInt aSymbolClass) |
|
168 { |
|
169 iSymbolClass = aSymbolClass; |
|
170 } |
|
171 |
|
172 // End of file |