1/*
2 SPDX-FileCopyrightText: 2014 Lukáš Tinkl <ltinkl@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_TEAM_SETTING_H
8#define NETWORKMANAGERQT_TEAM_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class TeamSettingPrivate;
18
19/**
20 * Represents team setting
21 */
22class NETWORKMANAGERQT_EXPORT TeamSetting : public Setting
23{
24public:
25 typedef QSharedPointer<TeamSetting> Ptr;
26 typedef QList<Ptr> List;
27 TeamSetting();
28 explicit TeamSetting(const Ptr &other);
29 ~TeamSetting() 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 QString config() const;
38 void setConfig(const QString &config);
39
40 void fromMap(const QVariantMap &setting) override;
41
42 QVariantMap toMap() const override;
43
44protected:
45 TeamSettingPrivate *d_ptr;
46
47private:
48 Q_DECLARE_PRIVATE(TeamSetting)
49};
50
51NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const TeamSetting &setting);
52
53}
54
55#endif // NETWORKMANAGERQT_TEAM_SETTING_H
56

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