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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
602 B
C
Raw 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