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:
parent
b8253cda5b
commit
3ccbf71b2d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user