author | eilers <eilers> | 2004-01-08 17:43:39 (UTC) |
---|---|---|
committer | eilers <eilers> | 2004-01-08 17:43:39 (UTC) |
commit | dc350f3bc1744a0bbfc230050d0d8c2817878dbb (patch) (unidiff) | |
tree | 7356378f030e0f5b160f5fec244da34ec312c463 | |
parent | eeb69efb4e0639429e5f6fd15e65b1b6fbaa5c35 (diff) | |
download | opie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.zip opie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.tar.gz opie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.tar.bz2 |
Forgotten to commit the patch for Mac OSX..
-rw-r--r-- | core/pim/today/today.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 2e7e1a8..139c91b 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -176,33 +176,38 @@ void Today::loadPlugins() { | |||
176 | 176 | ||
177 | init(); | 177 | init(); |
178 | 178 | ||
179 | QValueList<TodayPlugin>::Iterator tit; | 179 | QValueList<TodayPlugin>::Iterator tit; |
180 | if ( !pluginList.isEmpty() ) { | 180 | if ( !pluginList.isEmpty() ) { |
181 | for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { | 181 | for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { |
182 | (*tit).guiBox->hide(); | 182 | (*tit).guiBox->hide(); |
183 | (*tit).guiBox->reparent( 0, QPoint( 0, 0 ) ); | 183 | (*tit).guiBox->reparent( 0, QPoint( 0, 0 ) ); |
184 | delete (*tit).guiBox; | 184 | delete (*tit).guiBox; |
185 | (*tit).library->unload(); | 185 | (*tit).library->unload(); |
186 | delete (*tit).library; | 186 | delete (*tit).library; |
187 | } | 187 | } |
188 | pluginList.clear(); | 188 | pluginList.clear(); |
189 | } | 189 | } |
190 | 190 | ||
191 | QString path = QPEApplication::qpeDir() + "/plugins/today"; | 191 | QString path = QPEApplication::qpeDir() + "/plugins/today"; |
192 | #ifdef Q_OS_MACX | ||
193 | qWarning("Searching for Plugins in: %s", path.latin1()); | ||
194 | QDir dir( path, "lib*.dylib" ); | ||
195 | #else | ||
192 | QDir dir( path, "lib*.so" ); | 196 | QDir dir( path, "lib*.so" ); |
197 | #endif | ||
193 | 198 | ||
194 | QStringList list = dir.entryList(); | 199 | QStringList list = dir.entryList(); |
195 | QStringList::Iterator it; | 200 | QStringList::Iterator it; |
196 | 201 | ||
197 | // QMap<QString, TodayPlugin> tempList; | 202 | // QMap<QString, TodayPlugin> tempList; |
198 | 203 | ||
199 | for ( it = list.begin(); it != list.end(); ++it ) { | 204 | for ( it = list.begin(); it != list.end(); ++it ) { |
200 | QInterfacePtr<TodayPluginInterface> iface; | 205 | QInterfacePtr<TodayPluginInterface> iface; |
201 | QLibrary *lib = new QLibrary( path + "/" + *it ); | 206 | QLibrary *lib = new QLibrary( path + "/" + *it ); |
202 | 207 | ||
203 | qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); | 208 | qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); |
204 | if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) { | 209 | if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) { |
205 | qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() ); | 210 | qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() ); |
206 | qDebug( QString(*it) ); | 211 | qDebug( QString(*it) ); |
207 | 212 | ||
208 | TodayPlugin plugin; | 213 | TodayPlugin plugin; |