--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/controlpanelplugins/themeplugin/src/cpthemecontrol.h Fri Apr 16 14:59:22 2010 +0300
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0""
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+#ifndef CPTHEMECONTROL_H
+#define CPTHEMECONTROL_H
+
+#include <QObject>
+#include <QList>
+
+#include "cpthemechanger.h"
+#include <hbicon.h>
+
+QT_BEGIN_NAMESPACE
+class QModelIndex;
+class QString;
+class QStandardItemModel;
+QT_END_NAMESPACE
+
+class CpThemeListView;
+class CpThemePreview;
+class CpBaseSettingView;
+
+
+
+class CpThemeControl : public QObject
+{
+ Q_OBJECT
+
+public:
+ CpThemeControl();
+ ~CpThemeControl();
+ CpBaseSettingView* themeListView();
+ QString currentThemeName() const;
+ HbIcon currentThemeIcon() const;
+
+signals:
+ void themeUpdated(const QString& themeName, const HbIcon& icon);
+
+public slots:
+ void newThemeSelected(const QModelIndex& index);
+ void previewClosed();
+ void themeApplied(const QString& theme);
+ void themeListClosed();
+
+private:
+ void createThemeList();
+ void triggerThemeListClose();
+
+private:
+ CpThemeListView* mThemeListView;
+ CpThemePreview* mThemePreview;
+ CpThemeChanger* mThemeChanger;
+ QAbstractItemModel* mListModel;
+};
+
+#endif //CPTHEMECONTROL_H