33 #include "hblayeredstyleloader_p.h" |
33 #include "hblayeredstyleloader_p.h" |
34 #include "hbthemecommon_p.h" |
34 #include "hbthemecommon_p.h" |
35 #include "hbsharedcache_p.h" |
35 #include "hbsharedcache_p.h" |
36 #include "hbiconloader_p.h" |
36 #include "hbiconloader_p.h" |
37 #include "hbcssparser_p.h" |
37 #include "hbcssparser_p.h" |
38 #include "hbcache_p.h" |
38 #include "hbiconprocessor_p.h" |
39 class HbCache; |
39 |
40 class QString; |
40 class QString; |
41 class QSizeF; |
41 class QSizeF; |
42 |
42 |
43 class HbThemeServerUtils |
43 class HbThemeServerUtils |
44 { |
44 { |
45 public: |
45 public: |
46 static HbIconSource *getIconSource(const QString &filename); |
46 static HbIconSource *getIconSource(const QString &filename); |
47 static QString formatFromPath(const QString &iconPath); |
47 static QString formatFromPath(const QString &iconPath); |
48 static int getSharedStylesheet(const QString &fileName, |
48 static int getSharedStylesheet(const QString &fileName, |
49 HbLayeredStyleLoader::LayerPriority priority, |
49 HbLayeredStyleLoader::LayerPriority priority, |
|
50 bool &fileExists, |
50 bool *inSharedCache = 0); |
51 bool *inSharedCache = 0); |
51 static bool parseCssFile(HbCss::Parser &parser, const QString &fileName, int &cssOffset); |
52 static int getMissedHbCssFilesOffset(); |
52 static void cleanupUnusedCss(HbCache *cache); |
53 static bool parseCssFile(HbCss::Parser &parser, |
|
54 const QString &fileName, |
|
55 int &cssOffset, |
|
56 bool &fileExists); |
53 static int getSharedEffect(const QString &fileName); |
57 static int getSharedEffect(const QString &fileName); |
54 static int getSharedLayoutDefinition(const QString & fileName, |
58 static int getSharedLayoutDefinition(const QString & fileName, |
55 const QString &layout, |
59 const QString &layout, |
56 const QString §ion); |
60 const QString §ion, |
|
61 bool &fileExists); |
57 static void createDeviceProfileDatabase(); |
62 static void createDeviceProfileDatabase(); |
58 static bool removeSharedEffect(const QString &fileName); |
63 static bool removeSharedEffect(const QString &fileName); |
59 static void clearSharedEffects(); |
64 static void clearSharedEffects(); |
|
65 static int computeCpuCost(const HbIconKey & key, HbIconFormatType iconType, |
|
66 bool isConsolidatedIcon); |
|
67 static int computeGpuCost(const HbIconKey & key, HbIconFormatType iconType, |
|
68 bool isConsolidatedIcon); |
|
69 static int computeFrameItemCpuCost(const HbIconKey & key, |
|
70 HbIconFormatType iconType, |
|
71 HbRenderingMode rm); |
60 |
72 |
61 static void createThemeIndex(const QString &themePath, const HbThemeType &themetype); |
73 static void createThemeIndex(const QString &themePath, const HbThemeType &themetype); |
62 |
74 |
63 private: |
75 private: |
|
76 static void initMissedHbCssFilesList(); |
64 }; |
77 }; |
65 |
78 |
66 #endif // HBTHEMESERVERUTILS_P_H |
79 #endif // HBTHEMESERVERUTILS_P_H |