controlpanelplugins/themeplugin/src/cpthemecontrol.h
changeset 24 f5dfdd5e4a1b
parent 14 23411a3be0db
child 22 a5692c68d772
equal deleted inserted replaced
17:4a9568303383 24:f5dfdd5e4a1b
    18 #ifndef CPTHEMECONTROL_H
    18 #ifndef CPTHEMECONTROL_H
    19 #define CPTHEMECONTROL_H
    19 #define CPTHEMECONTROL_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <QList>
    22 #include <QList>
    23 #include <QTimer>
       
    24 
    23 
    25 #include "cpthemechanger.h"
    24 #include "cpthemechanger.h"
    26 #include <hbicon.h>
    25 #include <hbicon.h>
    27 
    26 
    28 QT_BEGIN_NAMESPACE
    27 QT_BEGIN_NAMESPACE
    29 class QModelIndex;
    28 class QModelIndex;
    30 class QString;
    29 class QString;
    31 class QSortFilterProxyModel;
    30 class QSortFilterProxyModel;
    32 QT_END_NAMESPACE
    31 QT_END_NAMESPACE
    33 
    32 
       
    33 class HbDialog;
    34 class CpThemeListView;
    34 class CpThemeListView;
    35 class CpThemePreview;
    35 class CpThemePreview;
    36 class CpBaseSettingView;
    36 class CpBaseSettingView;
    37 
    37 
    38 
    38 
    55     void newThemeSelected(const QModelIndex& index);
    55     void newThemeSelected(const QModelIndex& index);
    56     void previewClosed();
    56     void previewClosed();
    57     void themeApplied(const QString& theme);
    57     void themeApplied(const QString& theme);
    58     void themeListClosed();
    58     void themeListClosed();
    59     void themeChangeTimeout();
    59     void themeChangeTimeout();
       
    60     void themeWaitTimeout();
    60     void themeChangeFinished();
    61     void themeChangeFinished();
    61 
    62 
    62 private:
    63 private:
    63     void createThemeList();
    64     void createThemeList();
    64     void triggerThemeListClose();
    65     void triggerThemeListClose();
    68     CpThemeListView* mThemeListView;
    69     CpThemeListView* mThemeListView;
    69     CpThemePreview* mThemePreview;
    70     CpThemePreview* mThemePreview;
    70     CpThemeChanger* mThemeChanger;
    71     CpThemeChanger* mThemeChanger;
    71     QAbstractItemModel* mListModel;
    72     QAbstractItemModel* mListModel;
    72     QSortFilterProxyModel* mSortModel;
    73     QSortFilterProxyModel* mSortModel;
    73     QTimer* mIdleTimer;
    74     bool mThemeChangeFinished;
       
    75     HbDialog* mWaitDialog;
    74 };
    76 };
    75 
    77 
    76 #endif //CPTHEMECONTROL_H
    78 #endif //CPTHEMECONTROL_H