Warning, file /plasma/plasma-nm/libs/editor/widgets/hwaddrcombobox.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef PLASMA_NM_HWADDRCOMBOBOX_H 0008 #define PLASMA_NM_HWADDRCOMBOBOX_H 0009 0010 #include <QComboBox> 0011 0012 #include <NetworkManagerQt/Device> 0013 0014 class Q_DECL_EXPORT HwAddrComboBox : public QComboBox 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit HwAddrComboBox(QWidget *parent = nullptr); 0019 0020 void init(NetworkManager::Device::Type deviceType, const QString &address); 0021 0022 bool isValid() const; 0023 QString hwAddress() const; 0024 0025 Q_SIGNALS: 0026 void hwAddressChanged(); 0027 0028 private: 0029 void slotEditTextChanged(const QString &); 0030 void slotCurrentIndexChanged(int); 0031 void addAddressToCombo(const NetworkManager::Device::Ptr &device); 0032 QVariant hwAddressFromDevice(const NetworkManager::Device::Ptr &device); 0033 QString m_initialAddress; 0034 bool m_dirty = false; 0035 }; 0036 0037 #endif // PLASMA_NM_HWADDRCOMBOBOX_H