controlpanelplugins/themeplugin/src/cpthemelistmodel.h
changeset 21 2883a5458389
child 22 a5692c68d772
equal deleted inserted replaced
20:22d3abee08da 21:2883a5458389
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : cpthemelistmodel_p.h
       
     4 *  Part of     : LibHb / theme
       
     5 *  Description : CpThemeListModel class definition
       
     6 *  Version     : %version: 1 % << Don't touch! Updated by Synergy at check-out.
       
     7 *
       
     8 *  Copyright (c) 2008-2009 Nokia.  All rights reserved.
       
     9 *  This material, including documentation and any related computer
       
    10 *  programs, is protected by copyright controlled by Nokia.  All
       
    11 *  rights are reserved.  Copying, including reproducing, storing,
       
    12 *  adapting or translating, any or all of this material requires the
       
    13 *  prior written consent of Nokia.  This material also contains
       
    14 *  confidential information which may not be disclosed to others
       
    15 *  without the prior written consent of Nokia.
       
    16 * ============================================================================
       
    17 */
       
    18 
       
    19 #ifndef CP_THEME_LIST_MODEL_P_H
       
    20 #define CP_THEME_LIST_MODEL_P_H
       
    21 
       
    22 #include <QAbstractListModel>
       
    23 #include <QModelIndex>
       
    24 #include <QObject>
       
    25 
       
    26 class CpThemeChangerPrivate;
       
    27 
       
    28 class CpThemeListModel : public QAbstractListModel
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     CpThemeListModel(CpThemeChangerPrivate* dd, QObject *parent = 0);
       
    34     virtual ~CpThemeListModel();
       
    35 
       
    36     virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
       
    37     virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
       
    38 
       
    39 public slots:
       
    40     void themeListChanged();
       
    41 
       
    42 private:
       
    43     CpThemeChangerPrivate *mThemeChangerPrivate;
       
    44 };
       
    45 
       
    46 #endif //CP_THEME_LIST_MODEL_P_H