NetworkManagerQt

matchsetting.h
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:
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
Represents Match setting.
void fromMap(const QVariantMap &setting) override
Must be reimplemented, default implementation does nothing.
QVariantMap toMap() const override
Must be reimplemented, default implementationd does nothing.
QString name() const override
Must be reimplemented, default implementationd does nothing.
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.