NetworkManagerQt

bridgesetting.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_BRIDGE_SETTING_H
8#define NETWORKMANAGERQT_BRIDGE_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class BridgeSettingPrivate;
18
19/**
20 * Represents bridge setting
21 */
22class NETWORKMANAGERQT_EXPORT BridgeSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
28 explicit BridgeSetting(const Ptr &other);
29 ~BridgeSetting() 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 setStp(bool enabled);
38 bool stp() const;
39
40 void setPriority(quint32 priority);
41 quint32 priority() const;
42
43 void setForwardDelay(quint32 delay);
44 quint32 forwardDelay() const;
45
46 void setHelloTime(quint32 time);
47 quint32 helloTime() const;
48
49 void setMaxAge(quint32 age);
50 quint32 maxAge() const;
51
52 void setAgingTime(quint32 time);
53 quint32 agingTime() const;
54
55 void setMulticastSnooping(bool snooping);
56 bool multicastSnooping() const;
57
58 void setMacAddress(const QByteArray &address);
59 QByteArray macAddress() const;
60
61 void fromMap(const QVariantMap &setting) override;
62
63 QVariantMap toMap() const override;
64
65protected:
66 BridgeSettingPrivate *d_ptr;
67
68private:
69 Q_DECLARE_PRIVATE(BridgeSetting)
70};
71
72NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const BridgeSetting &setting);
73
74}
75
76#endif // NETWORKMANAGERQT_BRIDGE_SETTING_H
Represents bridge setting.
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 8 2024 11:48:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.