NetworkManagerQt

bondsetting.h
1/*
2 SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef NETWORKMANAGERQT_BOND_SETTING_H
8#define NETWORKMANAGERQT_BOND_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class BondSettingPrivate;
18
19/**
20 * Represents bond setting
21 */
22class NETWORKMANAGERQT_EXPORT BondSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
28 explicit BondSetting(const Ptr &other);
29 ~BondSetting() override;
30
31 QString name() const override;
32
33 /// @deprecated in favor of connection.interface-name in NM 1.0.0
34 void setInterfaceName(const QString &name);
35 QString interfaceName() const;
36
37 void addOption(const QString &option, const QString &value);
38 void setOptions(const NMStringMap &options);
39 NMStringMap options() const;
40
41 void fromMap(const QVariantMap &setting) override;
42
43 QVariantMap toMap() const override;
44
45protected:
46 BondSettingPrivate *d_ptr;
47
48private:
49 Q_DECLARE_PRIVATE(BondSetting)
50};
51
52NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const BondSetting &setting);
53
54}
55
56#endif // NETWORKMANAGERQT_BOND_SETTING_H
Represents bond setting.
Definition bondsetting.h:23
Base class for all kinds of setting.
Definition setting.h:30
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.