7#include "ovsinterfacesetting.h"
8#include "ovsinterfacesetting_p.h"
12#if !NM_CHECK_VERSION(1, 10, 0)
13#define NM_SETTING_OVS_INTERFACE_SETTING_NAME "ovs-interface"
14#define NM_SETTING_OVS_INTERFACE_TYPE "type"
17NetworkManager::OvsInterfaceSettingPrivate::OvsInterfaceSettingPrivate()
18 : name(NM_SETTING_OVS_INTERFACE_SETTING_NAME)
22NetworkManager::OvsInterfaceSetting::OvsInterfaceSetting()
23 : Setting(Setting::OvsInterface)
24 , d_ptr(new OvsInterfaceSettingPrivate())
28NetworkManager::OvsInterfaceSetting::OvsInterfaceSetting(
const Ptr &other)
30 , d_ptr(new OvsInterfaceSettingPrivate())
32 setInterfaceType(other->interfaceType());
35NetworkManager::OvsInterfaceSetting::~OvsInterfaceSetting()
47void NetworkManager::OvsInterfaceSetting::setInterfaceType(
const QString &type)
54QString NetworkManager::OvsInterfaceSetting::interfaceType()
const
56 Q_D(
const OvsInterfaceSetting);
63 if (setting.contains(
QLatin1String(NM_SETTING_OVS_INTERFACE_TYPE))) {
64 setInterfaceType(setting.value(
QLatin1String(NM_SETTING_OVS_INTERFACE_TYPE)).toString());
72 if (!interfaceType().isEmpty()) {
73 setting.insert(
QLatin1String(NM_SETTING_OVS_INTERFACE_TYPE), interfaceType());
81 dbg.
nospace() <<
"type: " << setting.typeAsString(setting.type()) <<
'\n';
82 dbg.
nospace() <<
"initialized: " << !setting.isNull() <<
'\n';
84 dbg.
nospace() << NM_SETTING_OVS_INTERFACE_TYPE <<
": " << setting.type() <<
'\n';
Represents ovs-interface setting.
QString name() const override
Must be reimplemented, default implementationd does nothing.
void fromMap(const QVariantMap &setting) override
Must be reimplemented, default implementation does nothing.
QVariantMap toMap() 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 Mon Nov 18 2024 12:08:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.