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