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_OVS_PATCH_SETTING_H |
8 | #define NETWORKMANAGERQT_OVS_PATCH_SETTING_H |
9 | |
10 | #include "setting.h" |
11 | #include <networkmanagerqt/networkmanagerqt_export.h> |
12 | |
13 | #include <QString> |
14 | |
15 | namespace NetworkManager |
16 | { |
17 | class OvsPatchSettingPrivate; |
18 | |
19 | /** |
20 | * Represents OvsPatch setting |
21 | */ |
22 | class NETWORKMANAGERQT_EXPORT OvsPatchSetting : public Setting |
23 | { |
24 | public: |
25 | typedef QSharedPointer<OvsPatchSetting> Ptr; |
26 | typedef QList<Ptr> List; |
27 | |
28 | OvsPatchSetting(); |
29 | explicit OvsPatchSetting(const Ptr &other); |
30 | ~OvsPatchSetting() override; |
31 | |
32 | QString name() const override; |
33 | |
34 | void setPeer(const QString &peer); |
35 | QString peer() const; |
36 | |
37 | void fromMap(const QVariantMap &setting) override; |
38 | |
39 | QVariantMap toMap() const override; |
40 | |
41 | protected: |
42 | OvsPatchSettingPrivate *d_ptr; |
43 | |
44 | private: |
45 | Q_DECLARE_PRIVATE(OvsPatchSetting) |
46 | }; |
47 | |
48 | NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const OvsPatchSetting &setting); |
49 | |
50 | } |
51 | |
52 | #endif // NETWORKMANAGERQT_OVS_PATCH_SETTING_H |
53 | |