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 * \class NetworkManager::PppSetting
21 * \inheaderfile NetworkManagerQt/PppSetting
22 * \inmodule NetworkManagerQt
23 *
24 * \brief Represents ppp setting.
25 */
26class NETWORKMANAGERQT_EXPORT PppSetting : public Setting
27{
28public:
29 /*!
30 * \typedef NetworkManager::PppSetting::Ptr
31 */
32 typedef QSharedPointer<PppSetting> Ptr;
33 /*!
34 * \typedef NetworkManager::PppSetting::List
35 */
36 typedef QList<Ptr> List;
37 /*!
38 */
39 PppSetting();
40 /*!
41 */
42 explicit PppSetting(const Ptr &other);
43 ~PppSetting() override;
44
45 QString name() const override;
46
47 /*!
48 */
49 void setNoAuth(bool require);
50 /*!
51 */
52 bool noAuth() const;
53
54 /*!
55 */
56 void setRefuseEap(bool refuse);
57 /*!
58 */
59 bool refuseEap() const;
60
61 /*!
62 */
63 void setRefusePap(bool refuse);
64 /*!
65 */
66 bool refusePap() const;
67
68 /*!
69 */
70 void setRefuseChap(bool refuse);
71 /*!
72 */
73 bool refuseChap() const;
74
75 /*!
76 */
77 void setRefuseMschap(bool refuse);
78 /*!
79 */
80 bool refuseMschap() const;
81
82 /*!
83 */
84 void setRefuseMschapv2(bool refuse);
85 /*!
86 */
87 bool refuseMschapv2() const;
88
89 /*!
90 */
91 void setNoBsdComp(bool require);
92 /*!
93 */
94 bool noBsdComp() const;
95
96 /*!
97 */
98 void setNoDeflate(bool require);
99 /*!
100 */
101 bool noDeflate() const;
102
103 /*!
104 */
105 void setNoVjComp(bool require);
106 /*!
107 */
108 bool noVjComp() const;
109
110 /*!
111 */
112 void setRequireMppe(bool require);
113 /*!
114 */
115 bool requireMppe() const;
116
117 /*!
118 */
119 void setRequireMppe128(bool require);
120 /*!
121 */
122 bool requireMppe128() const;
123
124 /*!
125 */
126 void setMppeStateful(bool used);
127 /*!
128 */
129 bool mppeStateful() const;
130
131 /*!
132 */
133 void setCRtsCts(bool control);
134 /*!
135 */
136 bool cRtsCts() const;
137
138 /*!
139 */
140 void setBaud(quint32 baud);
141 /*!
142 */
143 quint32 baud() const;
144
145 /*!
146 */
147 void setMru(quint32 mru);
148 /*!
149 */
150 quint32 mru() const;
151
152 /*!
153 */
154 void setMtu(quint32 mtu);
155 /*!
156 */
157 quint32 mtu() const;
158
159 /*!
160 */
161 void setLcpEchoFailure(quint32 number);
162 /*!
163 */
164 quint32 lcpEchoFailure() const;
165
166 /*!
167 */
168 void setLcpEchoInterval(quint32 interval);
169 /*!
170 */
171 quint32 lcpEchoInterval() const;
172
173 void fromMap(const QVariantMap &setting) override;
174
175 QVariantMap toMap() const override;
176
177protected:
178 PppSettingPrivate *d_ptr;
179
180private:
181 Q_DECLARE_PRIVATE(PppSetting)
182};
183
184NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const PppSetting &setting);
185
186}
187
188#endif // NETWORKMANAGERQT_PPP_SETTING_H
189

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