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 * Represents pppoe setting
21 */
22class NETWORKMANAGERQT_EXPORT PppoeSetting : public Setting
23{
24public:
25 typedef QSharedPointer<PppoeSetting> Ptr;
26 typedef QList<Ptr> List;
27 PppoeSetting();
28 explicit PppoeSetting(const Ptr &other);
29 ~PppoeSetting() override;
30
31 QString name() const override;
32
33 void setService(const QString &service);
34 QString service() const;
35
36 void setParent(const QString &parent);
37 QString parent() const;
38
39 void setUsername(const QString &username);
40 QString username() const;
41
42 void setPassword(const QString &password);
43 QString password() const;
44
45 void setPasswordFlags(Setting::SecretFlags flags);
46 Setting::SecretFlags passwordFlags() const;
47
48 QStringList needSecrets(bool requestNew = false) const override;
49
50 void secretsFromMap(const QVariantMap &secrets) override;
51
52 QVariantMap secretsToMap() const override;
53
54 void fromMap(const QVariantMap &setting) override;
55
56 QVariantMap toMap() const override;
57
58protected:
59 PppoeSettingPrivate *d_ptr;
60
61private:
62 Q_DECLARE_PRIVATE(PppoeSetting)
63};
64
65NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const PppoeSetting &setting);
66
67}
68
69#endif // NETWORKMANAGERQT_PPPOE_SETTING_H
70

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