equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HGMEDIAWALLDATAPROVIDER_H |
|
19 #define HGMEDIAWALLDATAPROVIDER_H |
|
20 |
|
21 class HgImage; |
|
22 |
|
23 /** |
|
24 * Data Provider interface for HgMediWallRenderer. |
|
25 */ |
|
26 class HgMediaWallDataProvider |
|
27 { |
|
28 public: |
|
29 virtual ~HgMediaWallDataProvider() {} |
|
30 /** |
|
31 * Gets the number of images the model contains. |
|
32 * @return number of images the model contains. |
|
33 */ |
|
34 virtual int imageCount() const=0; |
|
35 /** |
|
36 * Gets the image at given index. |
|
37 * @param index of the image in the model |
|
38 * @return pointer to HgImage-object. |
|
39 */ |
|
40 virtual const HgImage* image(int index) const=0; |
|
41 /** |
|
42 * Gets the the flags associated to the item at index |
|
43 * @param index of the item |
|
44 * @return flags of the item |
|
45 */ |
|
46 virtual int flags(int index) const=0; |
|
47 /** |
|
48 * Gets the image associated to given flags. |
|
49 * @param flags. |
|
50 * @return pointer HgImage-object. |
|
51 */ |
|
52 virtual const HgImage* indicator(int flags) const=0; |
|
53 }; |
|
54 |
|
55 #endif |