equal
deleted
inserted
replaced
35 // might leave. |
35 // might leave. |
36 // ----------------------------------------------------------------------------- |
36 // ----------------------------------------------------------------------------- |
37 // |
37 // |
38 CXnDomList::CXnDomList( |
38 CXnDomList::CXnDomList( |
39 TListType aListType, |
39 TListType aListType, |
40 CXnDomStringPool& aStringPool, |
40 CXnDomStringPool* aStringPool, |
41 TInt aGranularity ): |
41 TInt aGranularity ): |
42 iListType( aListType ), |
42 iListType( aListType ), |
43 iList( aGranularity ), |
43 iList( aGranularity ), |
44 iStringPool( aStringPool ) |
44 iStringPool( aStringPool ) |
45 { |
45 { |
59 // Two-phased constructor. |
59 // Two-phased constructor. |
60 // ----------------------------------------------------------------------------- |
60 // ----------------------------------------------------------------------------- |
61 // |
61 // |
62 CXnDomList* CXnDomList::NewL( |
62 CXnDomList* CXnDomList::NewL( |
63 TListType aListType, |
63 TListType aListType, |
64 CXnDomStringPool& aStringPool, |
64 CXnDomStringPool* aStringPool, |
65 TInt aGranularity) |
65 TInt aGranularity) |
66 { |
66 { |
67 CXnDomList* self = |
67 CXnDomList* self = |
68 new( ELeave ) CXnDomList( aListType, aStringPool,aGranularity ); |
68 new( ELeave ) CXnDomList( aListType, aStringPool,aGranularity ); |
69 |
69 |
78 // Two-phased stream constructor. |
78 // Two-phased stream constructor. |
79 // ----------------------------------------------------------------------------- |
79 // ----------------------------------------------------------------------------- |
80 // |
80 // |
81 CXnDomList* CXnDomList::NewL( |
81 CXnDomList* CXnDomList::NewL( |
82 RReadStream& aStream, |
82 RReadStream& aStream, |
83 CXnDomStringPool& aStringPool ) |
83 CXnDomStringPool* aStringPool ) |
84 { |
84 { |
85 CXnDomList* self = new( ELeave ) CXnDomList( ENodeList, aStringPool ); |
85 CXnDomList* self = new( ELeave ) CXnDomList( ENodeList, aStringPool ); |
86 |
86 |
87 CleanupStack::PushL( self ); |
87 CleanupStack::PushL( self ); |
88 |
88 |
288 |
288 |
289 // ----------------------------------------------------------------------------- |
289 // ----------------------------------------------------------------------------- |
290 // CXnDomList::StringPool |
290 // CXnDomList::StringPool |
291 // ----------------------------------------------------------------------------- |
291 // ----------------------------------------------------------------------------- |
292 // |
292 // |
293 EXPORT_C CXnDomStringPool& CXnDomList::StringPool() const |
293 EXPORT_C CXnDomStringPool* CXnDomList::StringPool() const |
294 { |
294 { |
295 return iStringPool; |
295 return iStringPool; |
296 } |
296 } |
297 |
297 |
|
298 // ----------------------------------------------------------------------------- |
|
299 // CXnDomAttribute::SwapStringPoolL |
|
300 // ----------------------------------------------------------------------------- |
|
301 // |
|
302 EXPORT_C void CXnDomList::SwapStringPoolL( CXnDomStringPool* aStringPool ) |
|
303 { |
|
304 if( !aStringPool ) |
|
305 { |
|
306 User::Leave( KErrArgument ); |
|
307 } |
|
308 |
|
309 iStringPool = aStringPool; |
|
310 } |
|
311 |
298 // ----------------------------------------------------------------------------- |
312 // ----------------------------------------------------------------------------- |
299 // CXnDomList::Size |
313 // CXnDomList::Size |
300 // ----------------------------------------------------------------------------- |
314 // ----------------------------------------------------------------------------- |
301 // |
315 // |
302 TInt CXnDomList::Size() const |
316 TInt CXnDomList::Size() const |