5#ifndef DCONNECTIONSETTING_H
6#define DCONNECTIONSETTING_H
12DNETWORKMANAGER_BEGIN_NAMESPACE
14class DConnectionSettingPrivate;
16using DCORE_NAMESPACE::DExpected;
27 Q_PROPERTY(
bool unsaved READ unsaved NOTIFY unsavedChanged)
28 Q_PROPERTY(QUrl filename READ filename NOTIFY filenameChanged)
29 Q_PROPERTY(NMSCFlags flags READ flags NOTIFY flagsChanged)
32 QUrl filename() const;
33 NMSCFlags flags() const;
36 DExpected<
void> updateSetting(const SettingDesc &settings) const;
37 DExpected<
void> deleteSetting() const;
38 DExpected<SettingDesc> settings() const;
41 void unsavedChanged(const
bool unsaved);
42 void filenameChanged(const QUrl &filename);
43 void flagsChanged(const NMSCFlags flags);
48 QScopedPointer<DConnectionSettingPrivate> d_ptr;
54DNETWORKMANAGER_END_NAMESPACE
对于连接配置的封装
Definition: dconnectionsetting.h:19
NMSettingsConnectionFlags
描述当前激活状态的标志
Definition: dnetworkmanagertypes.h:84