1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
/*
SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#pragma once
#include <processcore/process_attribute.h>
#include <processcore/process_data_provider.h>
class QProcess;
class NetworkPlugin : public KSysGuard::ProcessDataProvider
{
Q_OBJECT
public:
NetworkPlugin(QObject *parent, const QVariantList &args);
~NetworkPlugin();
void handleEnabledChanged(bool enabled) override;
private:
QProcess *m_process = nullptr;
KSysGuard::ProcessAttribute *m_inboundSensor = nullptr;
KSysGuard::ProcessAttribute *m_outboundSensor = nullptr;
};
|