equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Holds information about a feed. |
14 * Description: Holds information about a feed. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 |
18 //#ifdef _DEBUG |
19 //#ifdef _DEBUG |
19 #include <f32file.h> |
20 #include <f32file.h> |
20 //#endif |
21 //#endif |
21 |
22 |
22 #include <feedattributes.h> |
23 #include "FeedAttributes.h" |
23 #include <feedsserverfeed.h> |
24 #include "FeedsServerFeed.h" |
24 #include "Logger.h" |
25 #include "Logger.h" |
25 |
26 |
26 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
27 // CFeed::NewL |
28 // CFeed::NewL |
28 // |
29 // |
205 EXPORT_C void CFeed::ItemStatusL(RArray<TInt>& aItemIds, |
206 EXPORT_C void CFeed::ItemStatusL(RArray<TInt>& aItemIds, |
206 RArray<TItemStatus>& aItemStatus) const |
207 RArray<TItemStatus>& aItemStatus) const |
207 { |
208 { |
208 aItemIds.Reset(); |
209 aItemIds.Reset(); |
209 aItemStatus.Reset(); |
210 aItemStatus.Reset(); |
210 CleanupClosePushL(aItemIds); |
|
211 CleanupClosePushL(aItemStatus); |
|
212 |
211 |
213 // Add the item attributes. |
212 // Add the item attributes. |
214 for (TInt i = 0; i < iItems.Count(); i++) |
213 for (TInt i = 0; i < iItems.Count(); i++) |
215 { |
214 { |
216 User::LeaveIfError(aItemIds.Append(iItems[i]->Id())); |
215 User::LeaveIfError(aItemIds.Append(iItems[i]->Id())); |
217 User::LeaveIfError(aItemStatus.Append(iItems[i]->ItemStatus())); |
216 User::LeaveIfError(aItemStatus.Append(iItems[i]->ItemStatus())); |
218 } |
217 } |
219 |
|
220 CleanupStack::Pop(2); // aItemIds, aItemStatus |
|
221 } |
218 } |
222 |
219 |
223 // ----------------------------------------------------------------------------- |
220 // ----------------------------------------------------------------------------- |
224 // CFeed::AddItemL |
221 // CFeed::AddItemL |
225 // |
222 // |