You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
656 B
28 lines
656 B
// networksettingspage.h — Network configuration form |
|
#pragma once |
|
|
|
#include <QWidget> |
|
#include <QComboBox> |
|
#include <QSpinBox> |
|
#include <QString> |
|
|
|
class NetworkSettingsPage : public QWidget { |
|
Q_OBJECT |
|
public: |
|
explicit NetworkSettingsPage(QWidget* parent = nullptr); |
|
|
|
void loadFromConfig(const QString& configPath); |
|
void saveToConfig(const QString& configPath) const; |
|
|
|
private slots: |
|
void onInterfaceChanged(int index); |
|
|
|
private: |
|
void populateInterfaces(); |
|
void populateAddresses(const QString& ifaceName); |
|
|
|
QComboBox* m_interfaceCombo; |
|
QComboBox* m_ipCombo; |
|
QSpinBox* m_portSpin; |
|
QComboBox* m_protoCombo; |
|
};
|
|
|