plasma-framework/examples/dataengines/dataEngineTracker/dataenginetracker.h

31 lines
602 B
C
Raw Permalink Normal View History

2013-09-04 11:48:06 +02:00
/*
SPDX-FileCopyrightText: 2011 Aaron Seigo <aseigo@kde.org>
SPDX-License-Identifier: BSD-2-Clause
*/
2013-09-04 11:48:06 +02:00
#ifndef DATAENGINETRACKER_H
#define DATAENGINETRACKER_H
#include <QObject>
#include <Plasma/DataEngine>
class DataEngineTracker : QObject
{
Q_OBJECT
public:
2017-12-13 07:35:58 +01:00
DataEngineTracker(Plasma::DataEngine *engine, QObject *parent = nullptr);
2013-09-04 11:48:06 +02:00
public Q_SLOTS:
void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data);
void sourceAdded(const QString &source);
void sourceRemoved(const QString &source);
private:
Plasma::DataEngine *m_engine;
};
#endif