[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete
From: Olivier Goffart <ogoffart () tiscalinet ! be>
Date: 2003-06-26 8:49:20
[Download RAW message or body]
CVS commit by ogoffart:
Make the PluginLoader::loadPlugin () return the plugin
M +2 -3 pluginloader.cpp 1.63
M +2 -2 pluginloader.h 1.28
--- kdenonbeta/kopete/libkopete/pluginloader.cpp #1.62:1.63
@@ -200,5 +200,5 @@ QValueList<KopeteLibraryInfo> LibraryLoa
}
-bool LibraryLoader::loadPlugin( const QString &spec )
+KopetePlugin *LibraryLoader::loadPlugin( const QString &spec )
{
// kdDebug( 14010 ) << k_funcinfo << spec << endl;
@@ -243,11 +243,10 @@ bool LibraryLoader::loadPlugin( const QS
emit pluginLoaded( plugin );
- return true;
}
else
{
kdDebug(14010) << k_funcinfo << "Unable to load plugin '" << pluginId << "'!" << endl;
- return false;
}
+ return plugin;
}
--- kdenonbeta/kopete/libkopete/pluginloader.h #1.27:1.28
@@ -81,5 +81,5 @@ public:
bool isLoaded(const QString &spec) const;
void setModules(const QStringList &mods);
- bool loadPlugin( const QString &spec );
+ KopetePlugin *loadPlugin( const QString &spec );
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic