NetworkManagerQt

pppoesetting.h
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:
26 typedef QList<Ptr> List;
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
Represents pppoe setting.
Base class for all kinds of setting.
Definition setting.h:30
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.