equal
deleted
inserted
replaced
28 */ |
28 */ |
29 NONSHARABLE_CLASS( CCaInnerEntry ): public CBase |
29 NONSHARABLE_CLASS( CCaInnerEntry ): public CBase |
30 { |
30 { |
31 public: |
31 public: |
32 |
32 |
|
33 |
|
34 enum TLocalizedType |
|
35 { |
|
36 ENameLocalized = 0, |
|
37 EDescriptionLocalized |
|
38 }; |
33 /** |
39 /** |
34 * Destructor. |
40 * Destructor. |
35 */ |
41 */ |
36 virtual ~CCaInnerEntry(); |
42 virtual ~CCaInnerEntry(); |
37 |
43 |
114 * @param aId Entry id. |
120 * @param aId Entry id. |
115 */ |
121 */ |
116 IMPORT_C void SetId( TUint aId ); |
122 IMPORT_C void SetId( TUint aId ); |
117 |
123 |
118 /** |
124 /** |
119 * Sets the entry text. |
125 * Sets localized entry text. |
120 * @param aText Entry text. |
126 * @param aText Entry text. |
121 */ |
127 */ |
122 IMPORT_C void SetTextL( const TDesC& aText ); |
128 IMPORT_C void SetTextL( |
123 |
129 const TDesC& aText, TBool localized = false ); |
124 /** |
130 /** |
125 * Sets the entry description. |
131 * Sets localized entry description. |
126 * @param aText Entry description. |
132 * @param aText Entry description. |
127 */ |
133 */ |
128 IMPORT_C void SetDescriptionL( const TDesC& aText ); |
134 IMPORT_C void SetDescriptionL( |
|
135 const TDesC& aText, TBool localized = false ); |
129 |
136 |
130 /** |
137 /** |
131 * Sets the entry typename. |
138 * Sets the entry typename. |
132 * @param aTypeName Entry typename. |
139 * @param aTypeName Entry typename. |
133 */ |
140 */ |
204 /** |
211 /** |
205 * Internalizes stream to the object |
212 * Internalizes stream to the object |
206 * @param aStream a read stream |
213 * @param aStream a read stream |
207 */ |
214 */ |
208 IMPORT_C void InternalizeL( RReadStream& aStream ); |
215 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
216 |
|
217 /** |
|
218 * Gets if Description is localized. |
|
219 * @return ETrue if entry desscription is localized. |
|
220 */ |
|
221 IMPORT_C TBool isLocalized(TLocalizedType aLocalized) const; |
209 |
222 |
210 private: |
223 private: |
211 |
224 |
212 /** |
225 /** |
213 * Second phased constructor. |
226 * Second phased constructor. |
268 |
281 |
269 /* |
282 /* |
270 * Uid |
283 * Uid |
271 */ |
284 */ |
272 TInt32 iUid; |
285 TInt32 iUid; |
|
286 |
|
287 TBool iTextLocalized; |
|
288 |
|
289 TBool iDescriptionLocalized; |
|
290 |
273 |
291 |
274 }; |
292 }; |
275 |
293 |
276 #endif // __CAINNERENTRY_H__ |
294 #endif // __CAINNERENTRY_H__ |