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,12 +26,15 @@
|
|||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
|
class DataEngine;
|
||||||
|
|
||||||
class KDE_EXPORT Interface
|
class KDE_EXPORT Interface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Interface* self();
|
static Interface* self();
|
||||||
|
|
||||||
virtual bool loadDataEngine( 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;
|
virtual void unloadDataEngine(const QString &name) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user