controlpanelplugins/themeplugin/src/cpthemelistmodel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:39:17 +0300
changeset 17 4a9568303383
child 22 a5692c68d772
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* ============================================================================
*  Name        : cpthemelistmodel_p.h
*  Part of     : LibHb / theme
*  Description : CpThemeListModel class definition
*  Version     : %version: 1 % << Don't touch! Updated by Synergy at check-out.
*
*  Copyright (c) 2008-2009 Nokia.  All rights reserved.
*  This material, including documentation and any related computer
*  programs, is protected by copyright controlled by Nokia.  All
*  rights are reserved.  Copying, including reproducing, storing,
*  adapting or translating, any or all of this material requires the
*  prior written consent of Nokia.  This material also contains
*  confidential information which may not be disclosed to others
*  without the prior written consent of Nokia.
* ============================================================================
*/

#ifndef CP_THEME_LIST_MODEL_P_H
#define CP_THEME_LIST_MODEL_P_H

#include <QAbstractListModel>
#include <QModelIndex>
#include <QObject>

class CpThemeChangerPrivate;

class CpThemeListModel : public QAbstractListModel
{
    Q_OBJECT

public:
    CpThemeListModel(CpThemeChangerPrivate* dd, QObject *parent = 0);
    virtual ~CpThemeListModel();

    virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
    virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;

public slots:
    void themeListChanged();

private:
    CpThemeChangerPrivate *mThemeChangerPrivate;
};

#endif //CP_THEME_LIST_MODEL_P_H