equal
deleted
inserted
replaced
133 Registers service plugins pre-installed on the device. |
133 Registers service plugins pre-installed on the device. |
134 */ |
134 */ |
135 void HsHomeScreen::registerServicePlugins() |
135 void HsHomeScreen::registerServicePlugins() |
136 { |
136 { |
137 HSTEST_FUNC_ENTRY("HS::HsHomeScreen::registerServicePlugins()"); |
137 HSTEST_FUNC_ENTRY("HS::HsHomeScreen::registerServicePlugins()"); |
|
138 |
|
139 #ifdef Q_OS_SYMBIAN |
|
140 foreach(QFileInfo drive, QDir::drives()) { |
|
141 QApplication::addLibraryPath(drive.absolutePath() |
|
142 + QLatin1String("resource/qt/plugins/homescreen")); |
|
143 } |
|
144 #else |
|
145 QApplication::addLibraryPath("resource/qt/plugins/homescreen"); |
|
146 #endif |
138 |
147 |
139 QServiceManager serviceManager; |
148 QServiceManager serviceManager; |
140 |
149 |
141 QStringList pluginPaths; |
150 QStringList pluginPaths; |
142 |
151 |
143 pluginPaths << "private/20022F35"; |
152 pluginPaths << "private/20022F35"; |
|
153 |
|
154 #ifndef Q_OS_SYMBIAN |
|
155 pluginPaths << "resource/qt/plugins/homescreen"; |
|
156 #endif |
144 |
157 |
145 QFileInfoList drives = QDir::drives(); |
158 QFileInfoList drives = QDir::drives(); |
146 foreach(const QString pluginPath, pluginPaths) { |
159 foreach(const QString pluginPath, pluginPaths) { |
147 #ifdef Q_OS_SYMBIAN |
160 #ifdef Q_OS_SYMBIAN |
148 //Check plugin dirs from root of different drives |
161 //Check plugin dirs from root of different drives |