mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 23:29:58 +00:00
system source, some code improvements
This commit is contained in:
@ -23,17 +23,27 @@
|
||||
#include "abstractextsysmonsource.h"
|
||||
|
||||
|
||||
class QProcess;
|
||||
|
||||
class NetworkSource : public AbstractExtSysMonSource
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit NetworkSource(QObject *_parent, const QStringList &_args);
|
||||
virtual ~NetworkSource();
|
||||
QVariant data(const QString &_source);
|
||||
QVariantMap initialData(const QString &_source) const;
|
||||
void run(){};
|
||||
QStringList sources() const;
|
||||
~NetworkSource() override;
|
||||
QVariant data(const QString &_source) override;
|
||||
QVariantMap initialData(const QString &_source) const override;
|
||||
void run() override;
|
||||
QStringList sources() const override;
|
||||
|
||||
private slots:
|
||||
void updateSsid();
|
||||
|
||||
private:
|
||||
QVariantHash m_values;
|
||||
QProcess *m_process = nullptr;
|
||||
static QString getCurrentDevice();
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user