7#include "ovspatchsetting.h"
8#include "ovspatchsetting_p.h"
12#if !NM_CHECK_VERSION(1, 10, 0)
13#define NM_SETTING_OVS_PATCH_SETTING_NAME "ovs-patch"
14#define NM_SETTING_OVS_PATCH_PEER "peer"
17NetworkManager::OvsPatchSettingPrivate::OvsPatchSettingPrivate()
18 : name(NM_SETTING_OVS_PATCH_SETTING_NAME)
22NetworkManager::OvsPatchSetting::OvsPatchSetting()
23 : Setting(Setting::OvsPatch)
24 , d_ptr(new OvsPatchSettingPrivate())
28NetworkManager::OvsPatchSetting::OvsPatchSetting(
const Ptr &other)
30 , d_ptr(new OvsPatchSettingPrivate())
32 setPeer(other->peer());
35NetworkManager::OvsPatchSetting::~OvsPatchSetting()
47void NetworkManager::OvsPatchSetting::setPeer(
const QString &peer)
54QString NetworkManager::OvsPatchSetting::peer()
const
56 Q_D(
const OvsPatchSetting);
63 if (setting.contains(
QLatin1String(NM_SETTING_OVS_PATCH_PEER))) {
64 setPeer(setting.value(
QLatin1String(NM_SETTING_OVS_PATCH_PEER)).toString());
72 if (!peer().isEmpty()) {
73 setting.insert(
QLatin1String(NM_SETTING_OVS_PATCH_PEER), peer());
81 dbg.
nospace() <<
"type: " << setting.typeAsString(setting.type()) <<
'\n';
82 dbg.
nospace() <<
"initialized: " << !setting.isNull() <<
'\n';
84 dbg.
nospace() << NM_SETTING_OVS_PATCH_PEER <<
": " << setting.peer() <<
'\n';
Represents OvsPatch 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 file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:21 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.