diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbservers/hbthemeserver/hbthemeserverutils_p.h --- a/src/hbservers/hbthemeserver/hbthemeserverutils_p.h Mon Oct 04 17:49:30 2010 +0300 +++ b/src/hbservers/hbthemeserver/hbthemeserverutils_p.h Mon Oct 18 18:23:13 2010 +0300 @@ -35,8 +35,8 @@ #include "hbsharedcache_p.h" #include "hbiconloader_p.h" #include "hbcssparser_p.h" -#include "hbcache_p.h" -class HbCache; +#include "hbiconprocessor_p.h" + class QString; class QSizeF; @@ -47,20 +47,33 @@ static QString formatFromPath(const QString &iconPath); static int getSharedStylesheet(const QString &fileName, HbLayeredStyleLoader::LayerPriority priority, + bool &fileExists, bool *inSharedCache = 0); - static bool parseCssFile(HbCss::Parser &parser, const QString &fileName, int &cssOffset); - static void cleanupUnusedCss(HbCache *cache); + static int getMissedHbCssFilesOffset(); + static bool parseCssFile(HbCss::Parser &parser, + const QString &fileName, + int &cssOffset, + bool &fileExists); static int getSharedEffect(const QString &fileName); static int getSharedLayoutDefinition(const QString & fileName, const QString &layout, - const QString §ion); + const QString §ion, + bool &fileExists); static void createDeviceProfileDatabase(); static bool removeSharedEffect(const QString &fileName); static void clearSharedEffects(); + static int computeCpuCost(const HbIconKey & key, HbIconFormatType iconType, + bool isConsolidatedIcon); + static int computeGpuCost(const HbIconKey & key, HbIconFormatType iconType, + bool isConsolidatedIcon); + static int computeFrameItemCpuCost(const HbIconKey & key, + HbIconFormatType iconType, + HbRenderingMode rm); static void createThemeIndex(const QString &themePath, const HbThemeType &themetype); private: + static void initMissedHbCssFilesList(); }; #endif // HBTHEMESERVERUTILS_P_H