add dataEngine() and make loadDataEngine() return the engine rather than a boolean as that saves the innevitable re-lookup when we already have the pointer right at hand.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666240
This commit is contained in:
Aaron J. Seigo 2007-05-19 08:35:35 +00:00
parent b8253cda5b
commit 3ccbf71b2d

View File

@ -26,13 +26,16 @@
namespace Plasma
{
class DataEngine;
class KDE_EXPORT Interface
{
public:
static Interface* self();
virtual bool loadDataEngine( const QString &name ) = 0;
virtual void unloadDataEngine( const QString &name ) = 0;
virtual DataEngine* dataEngine(const QString &name) = 0;
virtual DataEngine* loadDataEngine(const QString &name) = 0;
virtual void unloadDataEngine(const QString &name) = 0;
protected:
Interface();