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 CPTHEMEUTIL_H_ |
|
19 #define CPTHEMEUTIL_H_ |
|
20 |
|
21 #include <QList> |
|
22 #include <QPair> |
|
23 |
|
24 class QStringList; |
|
25 class CpThemeInfo; |
|
26 class HbIcon; |
|
27 |
|
28 class CpThemeUtil { |
|
29 |
|
30 public: |
|
31 static QList<CpThemeInfo> buildThemeList(); |
|
32 static CpThemeInfo* buildThemeInfo(const QString& themePath, const QString& themeName = QString()); |
|
33 static QString defaultTheme(); |
|
34 static const QList< QPair< QString, QString > > availableThemes(); |
|
35 static const QStringList themeDirectories(const QList<CpThemeInfo> &themeInfoList); |
|
36 |
|
37 private: |
|
38 static HbIcon getPreviewIcon(const QString& themePath); |
|
39 |
|
40 |
|
41 }; |
|
42 |
|
43 #endif /* CPTHEMEUTIL_H_ */ |
|
44 |
|
45 |