NetworkManagerQt

adslsetting.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_ADSL_SETTING_H
8#define NETWORKMANAGERQT_ADSL_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class AdslSettingPrivate;
18
19/**
20 * Represents adsl setting
21 */
22class NETWORKMANAGERQT_EXPORT AdslSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
27 enum Protocol {
28 UnknownProtocol = 0,
29 Pppoa,
30 Pppoe,
31 Ipoatm,
32 };
33 enum Encapsulation {
34 UnknownEncapsulation = 0,
35 Vcmux,
36 Llc,
37 };
38
40 explicit AdslSetting(const Ptr &other);
41 ~AdslSetting() override;
42
43 QString name() const override;
44
45 void setUsername(const QString &username);
46 QString username() const;
47
48 void setPassword(const QString &password);
49 QString password() const;
50
51 void setPasswordFlags(SecretFlags flags);
52 SecretFlags passwordFlags() const;
53
54 void setProtocol(Protocol protocol);
55 Protocol protocol() const;
56
57 void setEncapsulation(Encapsulation encapsulation);
58 Encapsulation encapsulation() const;
59
60 void setVpi(quint32 vpi);
61 quint32 vpi() const;
62
63 void setVci(quint32 vci);
64 quint32 vci() const;
65
66 QStringList needSecrets(bool requestNew = false) const override;
67
68 void fromMap(const QVariantMap &setting) override;
69
70 QVariantMap toMap() const override;
71
72protected:
73 AdslSettingPrivate *d_ptr;
74
75private:
76 Q_DECLARE_PRIVATE(AdslSetting)
77};
78
79NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const AdslSetting &setting);
80
81}
82
83#endif // NETWORKMANAGERQT_ADSL_SETTING_H
Represents adsl setting.
Definition adslsetting.h:23
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 Fri Jul 19 2024 11:56:21 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.