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:
25 typedef QSharedPointer<TeamPortSetting> Ptr;
26 typedef QList<Ptr> List;
27
28 TeamPortSetting();
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
71

source code of networkmanager-qt/src/settings/teamportsetting.h