ganeswidgets/inc/hgmediawalldataprovider.h
changeset 0 89c329efa980
child 12 6c0ec0ccd2d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ganeswidgets/inc/hgmediawalldataprovider.h	Mon Apr 19 14:40:06 2010 +0300
@@ -0,0 +1,55 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:    
+*
+*/
+
+#ifndef HGMEDIAWALLDATAPROVIDER_H
+#define HGMEDIAWALLDATAPROVIDER_H
+
+class HgImage;
+
+/**
+ * Data Provider interface for HgMediWallRenderer.
+ */
+class HgMediaWallDataProvider
+{
+public:
+    virtual ~HgMediaWallDataProvider() {}
+    /**
+     * Gets the number of images the model contains.
+     * @return number of images the model contains.
+     */
+    virtual int imageCount() const=0;
+    /**
+     * Gets the image at given index.
+     * @param index of the image in the model
+     * @return pointer to HgImage-object.
+     */
+    virtual const HgImage* image(int index) const=0;
+    /**
+     * Gets the the flags associated to the item at index
+     * @param index of the item
+     * @return flags of the item
+     */
+    virtual int flags(int index) const=0;
+    /**
+     * Gets the image associated to given flags.
+     * @param flags.
+     * @return pointer HgImage-object.
+     */
+    virtual const HgImage* indicator(int flags) const=0;
+};
+
+#endif