1/*
2 SPDX-FileCopyrightText: 2011-2013 Lamarque V. Souza <lamarque@kde.org>
3 SPDX-FileCopyrightText: 2014 Jan Grulich <jgrulich@redhat.com>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef NETWORKMANAGERQT_DHCP4CONFIG_H
9#define NETWORKMANAGERQT_DHCP4CONFIG_H
10
11#include "generictypes.h"
12
13#include <networkmanagerqt/networkmanagerqt_export.h>
14
15#include <QSharedPointer>
16
17namespace NetworkManager
18{
19class Dhcp4ConfigPrivate;
20
21/**
22 * This class represents dhcp4 configuration
23 */
24class NETWORKMANAGERQT_EXPORT Dhcp4Config : public QObject
25{
26 Q_OBJECT
27public:
28 typedef QSharedPointer<Dhcp4Config> Ptr;
29 typedef QList<Ptr> List;
30
31 explicit Dhcp4Config(const QString &path, QObject *owner = nullptr);
32 ~Dhcp4Config() override;
33
34 QString path() const;
35
36 QVariantMap options() const;
37
38 QString optionValue(const QString &key) const;
39
40Q_SIGNALS:
41 void optionsChanged(const QVariantMap &);
42
43private:
44 Q_DECLARE_PRIVATE(Dhcp4Config)
45
46 Dhcp4ConfigPrivate *const d_ptr;
47};
48} // namespace NetworkManager
49
50#endif // NETWORKMANAGERQT_DHCP4CONFIG_H
51

source code of networkmanager-qt/src/dhcp4config.h