NetworkManagerQt

teamportsetting.h
1/*
2 SPDX-FileCopyrightText: 2018 Pranav Gade <pranavgade20@gmail.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_TEAM_PORT_SETTING_H
8#define NETWORKMANAGERQT_TEAM_PORT_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class TeamPortSettingPrivate;
18
19/**
20 * Represents TeamPort setting
21 */
22class NETWORKMANAGERQT_EXPORT TeamPortSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
27
29 explicit TeamPortSetting(const Ptr &other);
30 ~TeamPortSetting() override;
31
32 QString name() const override;
33
34 void config(const QString &config);
35 QString config() const;
36
37 void lacpKey(qint32 key);
38 qint32 lacpKey() const;
39
40 void lacpPrio(qint32 priority);
41 qint32 lacpPrio() const;
42
43 void prio(qint32 prio);
44 qint32 prio() const;
45
46 void queueId(qint32 id);
47 qint32 queueId() const;
48
49 void sticky(bool sticky);
50 bool sticky() const;
51
52 void setLinkWatchers(const NMVariantMapList &linkWatchers);
53 NMVariantMapList linkWatchers() const;
54
55 void fromMap(const QVariantMap &setting) override;
56
57 QVariantMap toMap() const override;
58
59protected:
60 TeamPortSettingPrivate *d_ptr;
61
62private:
63 Q_DECLARE_PRIVATE(TeamPortSetting)
64};
65
66NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const TeamPortSetting &setting);
67
68}
69
70#endif // NETWORKMANAGERQT_TEAM_PORT_SETTING_H
Base class for all kinds of setting.
Definition setting.h:30
Represents TeamPort setting.
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 Dec 27 2024 11:55:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.