Fix build
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=638150
This commit is contained in:
parent
b49680140c
commit
42e638bfd6
@ -23,13 +23,10 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
Interface* Interface::m_interface = 0;
|
||||
Interface* Interface::m_interface;
|
||||
|
||||
Interface *Interface::self()
|
||||
{
|
||||
if (!m_interface)
|
||||
m_interface = new 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";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -29,15 +29,10 @@ namespace Plasma
|
||||
class KDE_EXPORT Interface
|
||||
{
|
||||
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();
|
||||
|
||||
virtual bool loadDataEngine(const QString &name);
|
||||
virtual void unloadDataEngine(const QString &name);
|
||||
virtual bool loadDataEngine(const QString &name) = 0;
|
||||
virtual void unloadDataEngine(const QString &name) = 0;
|
||||
|
||||
protected:
|
||||
Interface();
|
||||
|
Loading…
Reference in New Issue
Block a user