From 3ccbf71b2d1f2ec0d1229fc1450a1784aa6bd170 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 19 May 2007 08:35:35 +0000 Subject: [PATCH] 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 --- interface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface.h b/interface.h index cf9e4fbe8..e3a1e7a04 100644 --- a/interface.h +++ b/interface.h @@ -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();