equal
deleted
inserted
replaced
49 ~HbThemeIndex(); |
49 ~HbThemeIndex(); |
50 |
50 |
51 int itemCount(); |
51 int itemCount(); |
52 bool validateItems(qint64 byteSize); |
52 bool validateItems(qint64 byteSize); |
53 |
53 |
54 static quint32 hash(const QString &string); |
|
55 const HbThemeIndexItemData *getItemData(const QString &itemName); |
54 const HbThemeIndexItemData *getItemData(const QString &itemName); |
|
55 const HbThemeIndexItemData *getItemData(quint32 hashValue); |
56 |
56 |
57 private: |
57 private: |
58 void init(); |
58 void init(); |
59 |
59 |
60 const char *mBaseAddress; |
60 const char *mBaseAddress; |
118 // Helper class for getting data out of HbThemeIndexItemData |
118 // Helper class for getting data out of HbThemeIndexItemData |
119 class HB_AUTOTEST_EXPORT HbThemeIndexResource |
119 class HB_AUTOTEST_EXPORT HbThemeIndexResource |
120 { |
120 { |
121 public: |
121 public: |
122 HbThemeIndexResource(const QString &resourceName); |
122 HbThemeIndexResource(const QString &resourceName); |
|
123 HbThemeIndexResource(quint32 hashValue); |
123 ~HbThemeIndexResource(); |
124 ~HbThemeIndexResource(); |
124 |
125 |
125 bool isValid(); |
126 bool isValid(); |
126 const QSize defaultItemSize(); |
127 const QSize defaultItemSize(); |
127 const QSize mirroredItemSize(); |
128 const QSize mirroredItemSize(); |
131 QString fullMirroredFileName(); |
132 QString fullMirroredFileName(); |
132 QColor colorValue(); |
133 QColor colorValue(); |
133 |
134 |
134 private: |
135 private: |
135 void getResourceData(); |
136 void getResourceData(); |
136 const QString &resourceName; |
137 const QString *resourceName; |
|
138 quint32 hashValue; |
137 const HbThemeIndexItemData *data; // not owned |
139 const HbThemeIndexItemData *data; // not owned |
138 QString basePath; |
140 QString basePath; |
139 QString themeName; |
141 QString themeName; |
140 HbThemeType type; |
142 HbThemeType type; |
141 }; |
143 }; |