equal
deleted
inserted
replaced
127 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
128 /** |
128 /** |
129 * Function implementation |
129 * Function implementation |
130 * @see AfStorageClient::activities(RPointerArray<CAfEntry> &) |
130 * @see AfStorageClient::activities(RPointerArray<CAfEntry> &) |
131 */ |
131 */ |
132 int CAfStorageClientPrivate::activities(RPointerArray<CAfEntry> &results) |
132 int CAfStorageClientPrivate::activities(RPointerArray<CAfEntry> &results, TInt limit) |
133 { |
133 { |
134 CAfEntry *entry = CAfEntry::NewL(); |
134 CAfEntry *entry = CAfEntry::NewL(); |
135 TInt result = execute(Activities, results, *entry); |
135 TInt result = execute(Activities, results, *entry, limit); |
136 delete entry; |
136 delete entry; |
137 return result; |
137 return result; |
138 } |
138 } |
139 |
139 |
140 // ----------------------------------------------------------------------------- |
140 // ----------------------------------------------------------------------------- |
241 |
241 |
242 // ----------------------------------------------------------------------------- |
242 // ----------------------------------------------------------------------------- |
243 /** |
243 /** |
244 * Function execute activity framework functinality and return results |
244 * Function execute activity framework functinality and return results |
245 */ |
245 */ |
246 int CAfStorageClientPrivate::execute(int function, RPointerArray<CAfEntry>& resultsList,const CAfEntry& templateEntry) |
246 int CAfStorageClientPrivate::execute(int function, RPointerArray<CAfEntry>& resultsList,const CAfEntry& templateEntry, int limit) |
247 { |
247 { |
248 TRAPD(errNo, mImplementation.executeL(function, resultsList, templateEntry);) |
248 TRAPD(errNo, mImplementation.executeL(function, resultsList, templateEntry, limit);) |
249 return errNo; |
249 return errNo; |
250 } |
250 } |