2009-04-01 01:51:52 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2005 by Aaron Seigo <aseigo@kde.org>
|
|
|
|
* Copyright 2007 by Riccardo Iaconelli <riccardo@kde.org>
|
|
|
|
* Copyright 2008 by Ménard Alexis <darktears31@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2012-09-24 15:51:14 +02:00
|
|
|
#ifndef PLASMA_DATAENGINECONSUMER_P_H
|
|
|
|
#define PLASMA_DATAENGINECONSUMER_P_H
|
2009-04-01 01:51:52 +02:00
|
|
|
|
2012-09-24 16:09:16 +02:00
|
|
|
#include <QMap>
|
|
|
|
#include <QSet>
|
|
|
|
#include <QUrl>
|
2009-04-01 01:51:52 +02:00
|
|
|
|
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
|
2009-09-03 02:12:57 +02:00
|
|
|
class DataEngineConsumer;
|
2012-09-24 16:09:16 +02:00
|
|
|
class Service;
|
2012-09-24 15:51:14 +02:00
|
|
|
class ServiceMonitor;
|
2012-09-24 16:09:16 +02:00
|
|
|
class ServiceJob;
|
2009-09-03 02:12:57 +02:00
|
|
|
|
2012-09-24 15:51:14 +02:00
|
|
|
class DataEngineConsumerPrivate : public QObject
|
2009-04-01 01:51:52 +02:00
|
|
|
{
|
2009-09-02 04:27:16 +02:00
|
|
|
Q_OBJECT
|
2012-09-24 15:51:14 +02:00
|
|
|
|
2009-04-01 01:51:52 +02:00
|
|
|
public:
|
2012-09-24 15:51:14 +02:00
|
|
|
QSet<QString> loadedEngines;
|
|
|
|
QMap<Service*, QString> engineNameForService;
|
2009-04-01 01:51:52 +02:00
|
|
|
|
2009-09-03 02:12:57 +02:00
|
|
|
public Q_SLOTS:
|
2009-09-02 04:27:16 +02:00
|
|
|
void slotJobFinished(Plasma::ServiceJob *job);
|
|
|
|
void slotServiceReady(Plasma::Service *service);
|
2009-04-01 01:51:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Plasma
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|