NetworkManagerQt

teamsetting.h
1 /*
2  SPDX-FileCopyrightText: 2014 Lukáš Tinkl <[email protected]>
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 
15 namespace NetworkManager
16 {
17 class TeamSettingPrivate;
18 
19 /**
20  * Represents team setting
21  */
22 class NETWORKMANAGERQT_EXPORT TeamSetting : public Setting
23 {
24 public:
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 
44 protected:
45  TeamSettingPrivate *d_ptr;
46 
47 private:
48  Q_DECLARE_PRIVATE(TeamSetting)
49 };
50 
51 NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const TeamSetting &setting);
52 
53 }
54 
55 #endif // NETWORKMANAGERQT_TEAM_SETTING_H
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition: accesspoint.h:20
KSharedConfigPtr config()
Represents team setting.
Definition: teamsetting.h:22
Base class for all kinds of setting.
Definition: setting.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:03:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.