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

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