1/*
2 SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef NETWORKMANAGERQT_PPPOE_SETTING_H
8#define NETWORKMANAGERQT_PPPOE_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class PppoeSettingPrivate;
18
19/*!
20 * \class NetworkManager::PppoeSetting
21 * \inheaderfile NetworkManagerQt/PppoeSetting
22 * \inmodule NetworkManagerQt
23 *
24 * \brief Represents pppoe setting.
25 */
26class NETWORKMANAGERQT_EXPORT PppoeSetting : public Setting
27{
28public:
29 /*!
30 * \typedef NetworkManager::PppoeSetting::Ptr
31 */
32 typedef QSharedPointer<PppoeSetting> Ptr;
33 /*!
34 * \typedef NetworkManager::PppoeSetting::List
35 */
36 typedef QList<Ptr> List;
37 /*!
38 */
39 PppoeSetting();
40 /*!
41 */
42 explicit PppoeSetting(const Ptr &other);
43 ~PppoeSetting() override;
44
45 QString name() const override;
46
47 /*!
48 */
49 void setService(const QString &service);
50 /*!
51 */
52 QString service() const;
53
54 /*!
55 */
56 void setParent(const QString &parent);
57 /*!
58 */
59 QString parent() const;
60
61 /*!
62 */
63 void setUsername(const QString &username);
64 /*!
65 */
66 QString username() const;
67
68 /*!
69 */
70 void setPassword(const QString &password);
71 /*!
72 */
73 QString password() const;
74
75 /*!
76 */
77 void setPasswordFlags(Setting::SecretFlags flags);
78 /*!
79 */
80 Setting::SecretFlags passwordFlags() const;
81
82 QStringList needSecrets(bool requestNew = false) const override;
83
84 void secretsFromMap(const QVariantMap &secrets) override;
85
86 QVariantMap secretsToMap() const override;
87
88 void fromMap(const QVariantMap &setting) override;
89
90 QVariantMap toMap() const override;
91
92protected:
93 PppoeSettingPrivate *d_ptr;
94
95private:
96 Q_DECLARE_PRIVATE(PppoeSetting)
97};
98
99NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const PppoeSetting &setting);
100
101}
102
103#endif // NETWORKMANAGERQT_PPPOE_SETTING_H
104

source code of networkmanager-qt/src/settings/pppoesetting.h