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_DHCP6CONFIG_H |
9 | #define NETWORKMANAGERQT_DHCP6CONFIG_H |
10 | |
11 | #include "generictypes.h" |
12 | |
13 | #include <networkmanagerqt/networkmanagerqt_export.h> |
14 | |
15 | #include <QSharedPointer> |
16 | |
17 | namespace NetworkManager |
18 | { |
19 | class Dhcp6ConfigPrivate; |
20 | |
21 | /** |
22 | * This class represents dhcp4 configuration |
23 | */ |
24 | class NETWORKMANAGERQT_EXPORT Dhcp6Config : public QObject |
25 | { |
26 | Q_OBJECT |
27 | public: |
28 | typedef QSharedPointer<Dhcp6Config> Ptr; |
29 | typedef QList<Ptr> List; |
30 | |
31 | explicit Dhcp6Config(const QString &path, QObject *owner = nullptr); |
32 | ~Dhcp6Config() override; |
33 | |
34 | QString path() const; |
35 | |
36 | QVariantMap options() const; |
37 | |
38 | QString optionValue(const QString &key) const; |
39 | |
40 | Q_SIGNALS: |
41 | void optionsChanged(const QVariantMap &); |
42 | |
43 | private: |
44 | Q_DECLARE_PRIVATE(Dhcp6Config) |
45 | |
46 | Dhcp6ConfigPrivate *const d_ptr; |
47 | }; |
48 | } // namespace NetworkManager |
49 | |
50 | #endif // NETWORKMANAGERQT_DHCP6CONFIG_H |
51 | |