NetworkManagerQt

pppsetting.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_PPP_SETTING_H
8#define NETWORKMANAGERQT_PPP_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class PppSettingPrivate;
18
19/**
20 * Represents ppp setting
21 */
22class NETWORKMANAGERQT_EXPORT PppSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
27 PppSetting();
28 explicit PppSetting(const Ptr &other);
29 ~PppSetting() override;
30
31 QString name() const override;
32
33 void setNoAuth(bool require);
34 bool noAuth() const;
35
36 void setRefuseEap(bool refuse);
37 bool refuseEap() const;
38
39 void setRefusePap(bool refuse);
40 bool refusePap() const;
41
42 void setRefuseChap(bool refuse);
43 bool refuseChap() const;
44
45 void setRefuseMschap(bool refuse);
46 bool refuseMschap() const;
47
48 void setRefuseMschapv2(bool refuse);
49 bool refuseMschapv2() const;
50
51 void setNoBsdComp(bool require);
52 bool noBsdComp() const;
53
54 void setNoDeflate(bool require);
55 bool noDeflate() const;
56
57 void setNoVjComp(bool require);
58 bool noVjComp() const;
59
60 void setRequireMppe(bool require);
61 bool requireMppe() const;
62
63 void setRequireMppe128(bool require);
64 bool requireMppe128() const;
65
66 void setMppeStateful(bool used);
67 bool mppeStateful() const;
68
69 void setCRtsCts(bool control);
70 bool cRtsCts() const;
71
72 void setBaud(quint32 baud);
73 quint32 baud() const;
74
75 void setMru(quint32 mru);
76 quint32 mru() const;
77
78 void setMtu(quint32 mtu);
79 quint32 mtu() const;
80
81 void setLcpEchoFailure(quint32 number);
82 quint32 lcpEchoFailure() const;
83
84 void setLcpEchoInterval(quint32 interval);
85 quint32 lcpEchoInterval() const;
86
87 void fromMap(const QVariantMap &setting) override;
88
89 QVariantMap toMap() const override;
90
91protected:
92 PppSettingPrivate *d_ptr;
93
94private:
95 Q_DECLARE_PRIVATE(PppSetting)
96};
97
98NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const PppSetting &setting);
99
100}
101
102#endif // NETWORKMANAGERQT_PPP_SETTING_H
Represents ppp setting.
Definition pppsetting.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 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.