author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 17 Dec 2009 09:09:50 +0200 | |
changeset 37 | 5d0ec8b709be |
parent 33 | 50974a8b132e |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: Implements CLiwIterable type |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef __CAPPITEMSLIST_H |
|
20 |
#define __CAPPITEMSLIST_H |
|
21 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
22 |
#include <liwgenericparam.h> |
19 | 23 |
|
24 |
class MIterator; |
|
25 |
||
26 |
/** |
|
27 |
* This class implements the abstract methods of CLiwIterable |
|
28 |
* class so that the user may iterate over the result |
|
29 |
* |
|
30 |
* @since Series60 v3.2 |
|
31 |
*/ |
|
32 |
NONSHARABLE_CLASS( CAppItemsList ) : public CLiwIterable |
|
33 |
{ |
|
34 |
||
35 |
public: |
|
36 |
||
37 |
/** |
|
38 |
* Two-phased constructor. |
|
39 |
* @param aIter holds a reference to the item list |
|
40 |
* @return A pointer of type CAppItemsList |
|
41 |
*/ |
|
42 |
static CAppItemsList* NewL( MIterator* aIter ); |
|
43 |
||
44 |
/** |
|
45 |
* Destructor. |
|
46 |
*/ |
|
47 |
~CAppItemsList(); |
|
48 |
||
49 |
||
50 |
/** |
|
51 |
* Resets the iterator to point to the beginning of list |
|
52 |
* @param void |
|
53 |
* @return void |
|
54 |
*/ |
|
55 |
void Reset(); |
|
56 |
||
57 |
/** |
|
58 |
* Constructs the next media item in the form of a map |
|
59 |
* @param TLiwVariant an output parameter that contains the result |
|
60 |
* @return TBool On success this returns ETrue else returns EFalse |
|
61 |
*/ |
|
62 |
TBool NextL( TLiwVariant& aItem ); |
|
63 |
||
64 |
||
65 |
private: |
|
66 |
||
67 |
/** |
|
68 |
* Parameterised constructor |
|
69 |
* @since Series60 v3.2 |
|
70 |
* @param aIter holds a reference to the item list model |
|
71 |
*/ |
|
72 |
||
73 |
CAppItemsList( MIterator* aIter ); |
|
74 |
||
75 |
private: // data |
|
76 |
||
77 |
/** |
|
78 |
* A pointer to Iterator of core class |
|
79 |
*/ |
|
80 |
MIterator* iIter; |
|
81 |
||
82 |
}; |
|
83 |
||
84 |
#endif // __CAPPITEMSLIST_H |