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 * \class NetworkManager::Dhcp4Config
23 * \inheaderfile NetworkManagerQt/Dhcp4Config
24 * \inmodule NetworkManagerQt
25 *
26 * \brief This class represents dhcp4 configuration.
27 */
28class NETWORKMANAGERQT_EXPORT Dhcp4Config : public QObject
29{
30 Q_OBJECT
31public:
32 /*!
33 * \typedef NetworkManager::Dhcp4Config::Ptr
34 */
35 typedef QSharedPointer<Dhcp4Config> Ptr;
36 /*!
37 * \typedef NetworkManager::Dhcp4Config::List
38 */
39 typedef QList<Ptr> List;
40
41 /*!
42 */
43 explicit Dhcp4Config(const QString &path, QObject *owner = nullptr);
44 ~Dhcp4Config() override;
45
46 /*!
47 */
48 QString path() const;
49
50 /*!
51 */
52 QVariantMap options() const;
53
54 /*!
55 */
56 QString optionValue(const QString &key) const;
57
58Q_SIGNALS:
59 /*!
60 */
61 void optionsChanged(const QVariantMap &);
62
63private:
64 Q_DECLARE_PRIVATE(Dhcp4Config)
65
66 Dhcp4ConfigPrivate *const d_ptr;
67};
68} // namespace NetworkManager
69
70#endif // NETWORKMANAGERQT_DHCP4CONFIG_H
71

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