controlpanelplugins/themeplugin/src/cpthemelistview.h
branchRCL_3
changeset 13 90fe62538f66
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
       
     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 #ifndef CPTHEMELISTVIEW_H
       
    18 #define CPTHEMELISTVIEW_H
       
    19 
       
    20 #include <QAbstractItemModel>
       
    21 
       
    22 #include <hbview.h>
       
    23 #include <hblistview.h>
       
    24 
       
    25 #include <cpbasesettingview.h>
       
    26 
       
    27 
       
    28 class CpThemeSelectionList;
       
    29 
       
    30 class CpThemeListView : public CpBaseSettingView
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     explicit CpThemeListView(QGraphicsItem *parent = 0);
       
    36     ~CpThemeListView();
       
    37     void setWidget(QGraphicsWidget *widget);
       
    38     HbListView* themeList() const;
       
    39     void setModel(QAbstractItemModel* model);
       
    40     void closeView();
       
    41 	
       
    42 signals:
       
    43     void newThemeSelected(const QModelIndex& index);
       
    44     void oviClicked();
       
    45 
       
    46 private:
       
    47     HbListView* mThemeList;
       
    48    
       
    49 };
       
    50 
       
    51 #endif //CPTHEMELISTVIEW_H
       
    52