2006-12-17 00:04:44 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this program; if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2007-03-01 00:35:26 +01:00
|
|
|
#include <kdebug.h>
|
2007-03-01 09:22:38 +01:00
|
|
|
#include <QVariant>
|
2007-03-01 00:35:26 +01:00
|
|
|
|
2006-12-17 00:04:44 +01:00
|
|
|
#include "dataengine.h"
|
2007-03-01 00:35:26 +01:00
|
|
|
#include "dataengine.moc"
|
|
|
|
|
|
|
|
using namespace Plasma;
|
2006-12-17 00:04:44 +01:00
|
|
|
|
|
|
|
class DataSource::Private
|
|
|
|
{
|
|
|
|
public:
|
2007-03-01 00:35:26 +01:00
|
|
|
Private() {}
|
|
|
|
~Private() {}
|
2006-12-17 00:04:44 +01:00
|
|
|
};
|
|
|
|
|
2007-03-01 00:35:26 +01:00
|
|
|
DataSource::DataSource(QObject* parent)
|
2006-12-17 00:04:44 +01:00
|
|
|
: QObject(parent)
|
|
|
|
{
|
|
|
|
d = new Private();
|
|
|
|
}
|
|
|
|
|
2007-03-01 00:35:26 +01:00
|
|
|
DataSource::~DataSource()
|
2006-12-17 00:04:44 +01:00
|
|
|
{
|
|
|
|
delete d;
|
|
|
|
}
|
|
|
|
|
2007-03-01 00:35:26 +01:00
|
|
|
QString DataSource::name()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
return QString();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DataEngine::DataEngine(QObject* parent)
|
|
|
|
: QObject(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
DataEngine::~DataEngine()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QStringList DataEngine::dataSources()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
return QStringList();
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::connect(const QString& source, DataVisualization* visualization)
|
|
|
|
{
|
|
|
|
Q_UNUSED(source)
|
|
|
|
Q_UNUSED(visualization)
|
|
|
|
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
DataSource::Data DataEngine::query(const QString& source)
|
|
|
|
{
|
|
|
|
Q_UNUSED(source)
|
|
|
|
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
2007-03-01 09:22:38 +01:00
|
|
|
return DataSource::Data();
|
2007-03-01 00:35:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::init()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::cleanup()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::setDataSource(const QString& source, const QVariant& value)
|
|
|
|
{
|
|
|
|
Q_UNUSED(source)
|
|
|
|
Q_UNUSED(value)
|
|
|
|
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::createDataSource(const QString& source, const QString& domain)
|
|
|
|
{
|
|
|
|
Q_UNUSED(source)
|
|
|
|
Q_UNUSED(domain)
|
|
|
|
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::removeDataSource(const QString& source)
|
|
|
|
{
|
|
|
|
Q_UNUSED(source)
|
|
|
|
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::clearAllDataSources()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::ref()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
void DataEngine::deref()
|
|
|
|
{
|
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
}
|
|
|
|
|
|
|
|
bool DataEngine::isUsed()
|
2006-12-17 00:04:44 +01:00
|
|
|
{
|
2007-03-01 00:35:26 +01:00
|
|
|
kDebug() << k_funcinfo << " not implemented";
|
|
|
|
return false;
|
2006-12-17 00:04:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|