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; |
25 |
26 |
26 class CpThemeUtil { |
27 class CpThemeUtil { |
27 |
28 |
28 public: |
29 public: |
29 static QStringList themePathList(); |
|
30 static QList<CpThemeInfo> buildThemeList(); |
30 static QList<CpThemeInfo> buildThemeList(); |
31 static CpThemeInfo* buildThemeInfo(const QString& themePath, const QString& themeName); |
31 static CpThemeInfo* buildThemeInfo(const QString& themePath, const QString& themeName = QString()); |
32 static QString themePath(const QString& themeName); |
|
33 static CpThemeInfo* defaultTheme(); |
32 static CpThemeInfo* defaultTheme(); |
|
33 static const QList< QPair< QString, QString > > availableThemes(); |
|
34 static const QStringList themeDirectories(const QList<CpThemeInfo> &themeInfoList); |
|
35 |
|
36 |
34 }; |
37 }; |
35 |
38 |
36 #endif /* CPTHEMEUTIL_H_ */ |
39 #endif /* CPTHEMEUTIL_H_ */ |
37 |
40 |
38 |
41 |