summaryrefslogtreecommitdiff
authoreilers <eilers>2004-01-08 17:43:39 (UTC)
committer eilers <eilers>2004-01-08 17:43:39 (UTC)
commitdc350f3bc1744a0bbfc230050d0d8c2817878dbb (patch) (side-by-side diff)
tree7356378f030e0f5b160f5fec244da34ec312c463
parenteeb69efb4e0639429e5f6fd15e65b1b6fbaa5c35 (diff)
downloadopie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.zip
opie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.tar.gz
opie-dc350f3bc1744a0bbfc230050d0d8c2817878dbb.tar.bz2
Forgotten to commit the patch for Mac OSX..
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp5
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
@@ -168,49 +168,54 @@ void Today::init() {
m_sv->addChild( m_big_box );
m_bblayout = new QVBoxLayout ( m_big_box );
}
/**
* Load the plugins
*/
void Today::loadPlugins() {
init();
QValueList<TodayPlugin>::Iterator tit;
if ( !pluginList.isEmpty() ) {
for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) {
(*tit).guiBox->hide();
(*tit).guiBox->reparent( 0, QPoint( 0, 0 ) );
delete (*tit).guiBox;
(*tit).library->unload();
delete (*tit).library;
}
pluginList.clear();
}
QString path = QPEApplication::qpeDir() + "/plugins/today";
+#ifdef Q_OS_MACX
+ qWarning("Searching for Plugins in: %s", path.latin1());
+ QDir dir( path, "lib*.dylib" );
+#else
QDir dir( path, "lib*.so" );
+#endif
QStringList list = dir.entryList();
QStringList::Iterator it;
// QMap<QString, TodayPlugin> tempList;
for ( it = list.begin(); it != list.end(); ++it ) {
QInterfacePtr<TodayPluginInterface> iface;
QLibrary *lib = new QLibrary( path + "/" + *it );
qDebug( "querying: %s", QString( path + "/" + *it ).latin1() );
if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() );
qDebug( QString(*it) );
TodayPlugin plugin;
plugin.library = lib;
plugin.iface = iface;
plugin.name = QString(*it);
QString type = (*it).left( (*it).find(".") );
QString lang;
Config config("locale");