Fix build

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=638150
This commit is contained in:
Matt Broadstone 2007-02-28 23:45:32 +00:00
parent b49680140c
commit 42e638bfd6
2 changed files with 3 additions and 26 deletions

View File

@ -23,13 +23,10 @@
namespace Plasma namespace Plasma
{ {
Interface* Interface::m_interface = 0; Interface* Interface::m_interface;
Interface *Interface::self() Interface *Interface::self()
{ {
if (!m_interface)
m_interface = new Interface;
return m_interface; return m_interface;
} }
@ -41,19 +38,4 @@ Interface::~Interface()
{ {
} }
bool loadDataEngine(const QString& name)
{
Q_UNUSED(name)
kDebug() << k_funcinfo << " not implemented";
return false;
}
void unloadDataEngine(const QString& name)
{
Q_UNUSED(name)
kDebug() << k_funcinfo << " not implemented";
}
} }

View File

@ -29,15 +29,10 @@ namespace Plasma
class KDE_EXPORT Interface class KDE_EXPORT Interface
{ {
public: public:
// NOTE: Fix this stuff, not sure what the design was supposed to be,
// but, this thing can't be a singleton because we can't create
// an Interface object due to the pure virtuals. Maybe make them
// just virtual? -MB
static Interface* self(); static Interface* self();
virtual bool loadDataEngine(const QString &name); virtual bool loadDataEngine(const QString &name) = 0;
virtual void unloadDataEngine(const QString &name); virtual void unloadDataEngine(const QString &name) = 0;
protected: protected:
Interface(); Interface();