File indexing completed on 2024-06-16 05:07:33
0001 /* 0002 SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <processcore/process_attribute.h> 0010 #include <processcore/process_data_provider.h> 0011 0012 class QProcess; 0013 0014 class NetworkPlugin : public KSysGuard::ProcessDataProvider 0015 { 0016 Q_OBJECT 0017 public: 0018 NetworkPlugin(QObject *parent, const QVariantList &args); 0019 0020 void handleEnabledChanged(bool enabled) override; 0021 0022 private: 0023 QProcess *m_process = nullptr; 0024 KSysGuard::ProcessAttribute *m_inboundSensor = nullptr; 0025 KSysGuard::ProcessAttribute *m_outboundSensor = nullptr; 0026 };