Commit 111ac65a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use override consistently

parent 17761be9
......@@ -34,7 +34,7 @@ class KCMNetworkmanagement : public KCModule
Q_OBJECT
public:
explicit KCMNetworkmanagement(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
virtual ~KCMNetworkmanagement();
~KCMNetworkmanagement() override;
public Q_SLOTS:
void defaults() override;
......
......@@ -35,7 +35,7 @@ class BluetoothMonitor: public QObject
Q_OBJECT
public:
explicit BluetoothMonitor(QObject * parent);
~BluetoothMonitor();
~BluetoothMonitor() override;
bool bluetoothConnectionExists(const QString &bdAddr, const QString &service);
void addBluetoothConnection(const QString &bdAddr, const QString &service, const QString &connectionName);
......
......@@ -40,7 +40,7 @@ Q_OBJECT
Q_DECLARE_PRIVATE(ModemMonitor)
public:
explicit ModemMonitor(QObject * parent);
virtual ~ModemMonitor();
~ModemMonitor() override;
public Q_SLOTS:
void unlockModem(const QString &modemUni);
......
......@@ -35,7 +35,7 @@ Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.plasmanetworkmanagement")
public:
explicit Monitor(QObject * parent);
virtual ~Monitor();
~Monitor() override;
public Q_SLOTS:
Q_SCRIPTABLE bool bluetoothConnectionExists(const QString &bdAddr, const QString &service);
......
......@@ -41,7 +41,7 @@ public:
NetworkManager::SecretAgent::GetSecretsFlags flags,
const QString &setting_name,
QWidget *parent = 0);
~PasswordDialog();
~PasswordDialog() override;
bool hasError() const;
NetworkManager::SecretAgent::Error error() const;
......
......@@ -57,7 +57,7 @@ public:
enum ErrorCode {PinCodeTooShort, PinCodesDoNotMatch, PukCodeTooShort};
explicit PinDialog(ModemManager::Modem *modem, const Type type = SimPin, QWidget *parent=0);
~PinDialog();
~PinDialog() override;
Type type() const;
QString pin() const;
......@@ -65,7 +65,7 @@ public:
QString puk() const;
public Q_SLOTS:
void accept();
void accept() override;
private Q_SLOTS:
void chkShowPassToggled(bool on);
......
......@@ -31,7 +31,7 @@ class PortalMonitor : public QObject
Q_OBJECT
public:
explicit PortalMonitor(QObject *parent);
~PortalMonitor();
~PortalMonitor() override;
private Q_SLOTS:
void connectivityChanged(NetworkManager::Connectivity connectivity);
......
......@@ -70,13 +70,13 @@ class Q_DECL_EXPORT SecretAgent : public NetworkManager::SecretAgent
Q_OBJECT
public:
explicit SecretAgent(QObject* parent = 0);
virtual ~SecretAgent();
~SecretAgent() override;
public Q_SLOTS:
virtual NMVariantMapMap GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint) Q_DECL_OVERRIDE;
virtual void SaveSecrets(const NMVariantMapMap &connection, const QDBusObjectPath &connection_path) Q_DECL_OVERRIDE;
virtual void DeleteSecrets(const NMVariantMapMap &, const QDBusObjectPath &) Q_DECL_OVERRIDE;
virtual void CancelGetSecrets(const QDBusObjectPath &, const QString &) Q_DECL_OVERRIDE;
NMVariantMapMap GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint) override;
void SaveSecrets(const NMVariantMapMap &connection, const QDBusObjectPath &connection_path) override;
void DeleteSecrets(const NMVariantMapMap &, const QDBusObjectPath &) override;
void CancelGetSecrets(const QDBusObjectPath &, const QString &) override;
private Q_SLOTS:
void dialogAccepted();
......
......@@ -38,7 +38,7 @@ Q_OBJECT
Q_DECLARE_PRIVATE(NetworkManagementService)
public:
NetworkManagementService(QObject * parent, const QVariantList&);
virtual ~NetworkManagementService();
~NetworkManagementService() override;
public Q_SLOTS:
Q_SCRIPTABLE void init();
......
......@@ -48,7 +48,7 @@ Q_PROPERTY(bool bluetoothDeviceAvailable READ isBluetoothDeviceAvailable NOTIFY
Q_OBJECT
public:
explicit AvailableDevices(QObject* parent = 0);
virtual ~AvailableDevices();
~AvailableDevices() override;
public Q_SLOTS:
bool isWiredDeviceAvailable() const;
......
......@@ -39,7 +39,7 @@ Q_PROPERTY(bool airplaneMode READ airplaneMode WRITE setAirplaneMode NOTIFY airp
Q_OBJECT
public:
explicit ConnectionIcon(QObject* parent = 0);
virtual ~ConnectionIcon();
~ConnectionIcon() override;
bool connecting() const;
QString connectionIcon() const;
......
......@@ -50,7 +50,7 @@ Q_PROPERTY(bool wwanHwEnabled READ isWwanHwEnabled NOTIFY wwanHwEnabled)
Q_OBJECT
public:
explicit EnabledConnections(QObject* parent = 0);
virtual ~EnabledConnections();
~EnabledConnections() override;
bool isNetworkingEnabled() const;
bool isWirelessEnabled() const;
......
......@@ -32,7 +32,7 @@ Q_ENUMS(SecurityType)
public:
explicit Enums(QObject* parent = 0);
virtual ~Enums();
~Enums() override;
enum ConnectionStatus {
UnknownState = 0,
......
......@@ -53,7 +53,7 @@ public:
static SortedConnectionType connectionTypeToSortedType(NetworkManager::ConnectionSettings::ConnectionType type);
explicit NetworkStatus(QObject* parent = 0);
virtual ~NetworkStatus();
~NetworkStatus() override;
QString activeConnections() const;
QString networkStatus() const;
......
......@@ -28,7 +28,7 @@ class QmlPlugins : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char * uri);
void registerTypes(const char * uri) override;
};
#endif // PLASMA_NM_QML_PLUGINS_H
......@@ -36,7 +36,7 @@ public:
explicit ConnectionEditorBase(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
explicit ConnectionEditorBase(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorBase();
~ConnectionEditorBase() override;
// When reimplementing do not forget to call the base method as well to initialize widgets
virtual void setConnection(const NetworkManager::ConnectionSettings::Ptr &connection);
......
......@@ -33,7 +33,7 @@ Q_OBJECT
public:
explicit ConnectionEditorDialog(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorDialog();
~ConnectionEditorDialog() override;
NMVariantMapMap setting() const;
......
......@@ -37,7 +37,7 @@ Q_OBJECT
public:
explicit ConnectionEditorTabWidget(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorTabWidget();
~ConnectionEditorTabWidget() override;
void setConnection(const NetworkManager::ConnectionSettings::Ptr &connection) override;
......
......@@ -34,9 +34,9 @@ class ListValidator : public QValidator
{
public:
ListValidator(QObject *parent);
virtual ~ListValidator();
~ListValidator() override;
virtual State validate(QString &text, int &pos) const;
State validate(QString &text, int &pos) const override;
void setInnerValidator(QValidator *validator);
private:
......
......@@ -41,13 +41,13 @@ class Q_DECL_EXPORT BondWidget : public SettingWidget
public:
explicit BondWidget(const QString & masterUuid, const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(),
QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~BondWidget();
~BondWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void addBond(QAction * action);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment