ganeswidgets/inc/hgmediawalldataprovider.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:43:11 +0300
changeset 5 4fa04caf0f43
parent 0 89c329efa980
child 12 6c0ec0ccd2d4
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* 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