1 /* |
|
2 * Copyright (c) 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 "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: Declaration of Data Source Interface for Info Listboxes. |
|
15 * Provides a standard interface for getting all the |
|
16 * data Info Listbox needs to show. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef M_CAM_INFOLISTBOXDATASOURCE |
|
22 #define M_CAM_INFOLISTBOXDATASOURCE |
|
23 |
|
24 // =========================================================================== |
|
25 // Class declarations |
|
26 class MCamInfoListboxDataSource |
|
27 { |
|
28 public: |
|
29 virtual TInt ItemIdCount( TInt aType ) const = 0; |
|
30 /** |
|
31 * Get item id array of type set earlier by SetItemIdArrayType. |
|
32 */ |
|
33 virtual void ItemIdsL( RArray<TInt>& aItems ) = 0; |
|
34 |
|
35 /** |
|
36 * Get item id array of given type. |
|
37 */ |
|
38 virtual void ItemIdsL( RArray<TInt>& aItems, |
|
39 TInt aType ) = 0; |
|
40 |
|
41 virtual void SetItemIdArrayType( TInt aType ) = 0; |
|
42 virtual TInt ItemIdArrayType() const = 0; |
|
43 |
|
44 virtual TInt ListboxResourceId( TInt aItemId ) = 0; |
|
45 virtual TInt InfoResourceId ( TInt aItemId ) = 0; |
|
46 |
|
47 virtual TPtrC ListboxTitle ( TInt aItemId ) = 0; |
|
48 virtual TInt ListboxIconId ( TInt aItemId ) = 0; |
|
49 |
|
50 virtual TPtrC InfoTitle ( TInt aItemId ) = 0; |
|
51 virtual TPtrC InfoDescription ( TInt aItemId ) = 0; |
|
52 virtual TInt InfoIconId ( TInt aItemId ) = 0; |
|
53 |
|
54 }; |
|
55 |
|
56 #endif // M_CAM_INFOLISTBOXDATASOURCE |
|
57 |
|
58 // =========================================================================== |
|
59 // end of file |
|