--- a/src/hbcore/theme/hbthemeclient_generic_p.cpp Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/theme/hbthemeclient_generic_p.cpp Fri Jun 11 13:58:22 2010 +0300
@@ -120,13 +120,6 @@
delete localSocket;
}
-QSizeF HbThemeClientPrivate::getSharedIconDefaultSize(const QString &iconPath)
-{
- // Not implemented atm...
- Q_UNUSED(iconPath)
- return QSizeF();
-}
-
/**
* HbThemeClientPrivate::getSharedIconInfo()
*/
@@ -281,7 +274,7 @@
* HbThemeClientPrivate::getSharedStyleSheet()
*/
HbCss::StyleSheet *HbThemeClientPrivate::getSharedStyleSheet(
- const QString &fileName, HbLayeredStyleLoader::LayerPriority priority)
+ const QString &filePath, HbLayeredStyleLoader::LayerPriority priority)
{
#ifdef THEME_SERVER_TRACES
qDebug() << Q_FUNC_INFO;
@@ -296,7 +289,7 @@
HbThemeServerRequest requestType = EStyleSheetLookup;
outputDataStream << int(requestType);
- outputDataStream << fileName;
+ outputDataStream << filePath;
outputDataStream << priority;
disconnect(localSocket, SIGNAL(readyRead()), this, SLOT(changeTheme()));
@@ -1016,6 +1009,24 @@
}
/**
+ * HbThemeClientPrivate::setTheme()
+ */
+void HbThemeClientPrivate::setTheme(const QString &theme)
+{
+ if ( !clientConnected ) {
+ return;
+ }
+
+ QByteArray outputByteArray;
+ QDataStream outputDataStream(&outputByteArray, QIODevice::WriteOnly);
+ HbThemeServerRequest requestType = EThemeSelection;
+ outputDataStream << (int)requestType;
+ outputDataStream << theme;
+ localSocket->write(outputByteArray);
+ localSocket->flush();
+}
+
+/**
* HbThemeClientPrivate::notifyForegroundLostToServer()
*/
void HbThemeClientPrivate::notifyForegroundLostToServer()