controlpanelplugins/themeplugin/src/cpthemecontrol.h
changeset 37 cb294e641644
parent 31 e79ce701c376
equal deleted inserted replaced
31:e79ce701c376 37:cb294e641644
    30 class QSortFilterProxyModel;
    30 class QSortFilterProxyModel;
    31 QT_END_NAMESPACE
    31 QT_END_NAMESPACE
    32 
    32 
    33 class HbDialog;
    33 class HbDialog;
    34 class CpThemeListView;
    34 class CpThemeListView;
    35 class CpThemePreview;
       
    36 class CpBaseSettingView;
    35 class CpBaseSettingView;
    37 class CpThemeListModel;
    36 class CpThemeListModel;
    38 
    37 
    39 
    38 
    40 class CpThemeControl : public QObject
    39 class CpThemeControl : public QObject
    49     HbIcon currentThemeIcon() const;
    48     HbIcon currentThemeIcon() const;
    50 
    49 
    51 signals:
    50 signals:
    52     void themeUpdated(const QString& themeName, const HbIcon& icon);
    51     void themeUpdated(const QString& themeName, const HbIcon& icon);
    53 
    52 
    54 public slots:
    53 private slots:
    55     void newThemeSelected(const QModelIndex& index);
    54     void newThemeSelected(const QModelIndex& index);
    56     void previewClosed();
    55     void applyTheme(const CpThemeInfo& theme);
    57     void themeApplied(const CpThemeInfo& theme);
       
    58     void themeListClosed();
    56     void themeListClosed();
    59     void themeChangeTimeout();
    57     void themeChangeTimeout();
    60     void themeWaitTimeout();
    58     void themeWaitTimeout();
    61     void themeChangeFinished();
    59     void themeChangeFinished();
       
    60     void getOviTheme();
    62 
    61 
    63 private:
    62 private:
    64     void createThemeList();
    63     void createThemeList();
    65     void triggerThemeListClose();
    64     void triggerThemeListClose();
    66     void setActiveThemeIndex();
    65     void setActiveThemeIndex();
    67 
    66 
    68 private:
    67 private:
    69     CpThemeListView* mThemeListView;
    68     CpThemeListView* mThemeListView;
    70     CpThemePreview* mThemePreview;
       
    71     CpThemeChanger* mThemeChanger;
    69     CpThemeChanger* mThemeChanger;
    72     QAbstractItemModel* mListModel;
    70     QAbstractItemModel* mListModel;
    73     bool mThemeChangeFinished;
    71     bool mThemeChangeFinished;
    74     HbDialog* mWaitDialog;
    72     HbDialog* mWaitDialog;
    75 };
    73 };