equal
deleted
inserted
replaced
52 |
52 |
53 /** |
53 /** |
54 * Two-phased constructor. |
54 * Two-phased constructor. |
55 */ |
55 */ |
56 static CXnDomList* NewL( TListType aListType, |
56 static CXnDomList* NewL( TListType aListType, |
57 CXnDomStringPool& aStringPool, |
57 CXnDomStringPool* aStringPool, |
58 TInt aGranularity=4); |
58 TInt aGranularity=4); |
59 |
59 |
60 /** |
60 /** |
61 * Two-phased stream constructor. |
61 * Two-phased stream constructor. |
62 */ |
62 */ |
63 static CXnDomList* NewL( |
63 static CXnDomList* NewL( |
64 RReadStream& aStream, |
64 RReadStream& aStream, |
65 CXnDomStringPool& aStringPool ); |
65 CXnDomStringPool* aStringPool ); |
66 |
66 |
67 /** |
67 /** |
68 * Destructor. |
68 * Destructor. |
69 */ |
69 */ |
70 virtual ~CXnDomList(); |
70 virtual ~CXnDomList(); |
166 * @return Item index or KErrNotFound if not found |
166 * @return Item index or KErrNotFound if not found |
167 */ |
167 */ |
168 IMPORT_C TInt ItemIndex( const MXnDomListItem& aItem )const; |
168 IMPORT_C TInt ItemIndex( const MXnDomListItem& aItem )const; |
169 |
169 |
170 /** |
170 /** |
171 * Get reference to the dom's string pool. |
171 * Get pointer to the dom's string pool. |
172 * @since Series 60 3.1 |
172 * @since Series 60 3.1 |
173 * @return Reference to string pool |
173 * @return Reference to string pool |
174 */ |
174 */ |
175 IMPORT_C CXnDomStringPool& StringPool() const; |
175 IMPORT_C CXnDomStringPool* StringPool() const; |
|
176 |
|
177 /** |
|
178 * Swap used string pool. |
|
179 * |
|
180 * @param aStringPool New string pool to be used. |
|
181 * Ownership not transferred! |
|
182 */ |
|
183 IMPORT_C void SwapStringPoolL( CXnDomStringPool* aStringPool ); |
176 |
184 |
177 /** |
185 /** |
178 * Count items in a list. |
186 * Count items in a list. |
179 */ |
187 */ |
180 TInt Count() const; |
188 TInt Count() const; |
218 |
226 |
219 /** |
227 /** |
220 * C++ default constructor. |
228 * C++ default constructor. |
221 */ |
229 */ |
222 CXnDomList( TListType aListType, |
230 CXnDomList( TListType aListType, |
223 CXnDomStringPool& aStringPool, |
231 CXnDomStringPool* aStringPool, |
224 TInt aGranularity=4 ); |
232 TInt aGranularity=4 ); |
225 |
233 |
226 /** |
234 /** |
227 * By default Symbian 2nd phase constructor is private. |
235 * By default Symbian 2nd phase constructor is private. |
228 */ |
236 */ |
235 //Items are stored into a segmented array |
243 //Items are stored into a segmented array |
236 RPointerArray<MXnDomListItem> iList; |
244 RPointerArray<MXnDomListItem> iList; |
237 |
245 |
238 private: // Data |
246 private: // Data |
239 // StringPool, not owned |
247 // StringPool, not owned |
240 CXnDomStringPool& iStringPool; |
248 CXnDomStringPool* iStringPool; |
241 |
249 |
242 |
250 |
243 }; |
251 }; |
244 |
252 |
245 #endif // XN_DOM_LIST_H |
253 #endif // XN_DOM_LIST_H |