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