equal
deleted
inserted
replaced
|
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 |
|
18 #ifndef CPTHEMEPREVIEW_H |
|
19 #define CPTHEMEPREVIEW_H |
|
20 |
|
21 #include <hbview.h> |
|
22 #include <QObject> |
|
23 #include <hbicon.h> |
|
24 #include <cpthemechanger.h> |
|
25 |
|
26 QT_BEGIN_NAMESPACE |
|
27 class QString; |
|
28 QT_END_NAMESPACE |
|
29 |
|
30 class HbAction; |
|
31 class HbMainWindow; |
|
32 class HbIconItem; |
|
33 |
|
34 class CpThemePreview : public HbView |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 explicit CpThemePreview(const CpThemeChanger::ThemeInfo &theme, QGraphicsItem *parent = 0); |
|
40 ~CpThemePreview(); |
|
41 void setThemeInfo(const CpThemeChanger::ThemeInfo& theme); |
|
42 const QString& themeName() const; |
|
43 const HbIcon& themeIcon() const; |
|
44 |
|
45 signals: |
|
46 void applyTheme(const QString&); |
|
47 void aboutToClose(); |
|
48 |
|
49 public slots: |
|
50 void themeSelected(); |
|
51 |
|
52 private: |
|
53 CpThemeChanger::ThemeInfo mTheme; |
|
54 HbAction* mSoftKeyBackAction; |
|
55 }; |
|
56 |
|
57 #endif //CPTHEMEPREVIEW_H |