pptp-connection.h
Go to the documentation of this file.
/*
* Copyright © 2015 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Pete Woods <pete.woods@canonical.com>
*/
#pragma once
#include <connectivityqt/vpn-connection.h>
namespace connectivityqt
{
class Q_DECL_EXPORT PptpConnection : public VpnConnection
{
Q_OBJECT
public:
LOMIRI_DEFINES_PTRS(PptpConnection);
Q_ENUMS(MppeType)
enum class MppeType
{
MPPE_ALL,
MPPE_128,
MPPE_40
};
PptpConnection(const QDBusObjectPath& path, const QDBusConnection& connection);
virtual ~PptpConnection();
Type type() const override;
// Basic properties
Q_PROPERTY(QString gateway READ gateway WRITE setGateway NOTIFY gatewayChanged)
QString gateway() const;
Q_PROPERTY(QString user READ user WRITE setUser NOTIFY userChanged)
QString user() const;
Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
QString password() const;
Q_PROPERTY(QString domain READ domain WRITE setDomain NOTIFY domainChanged)
QString domain() const;
// Advanced properties
Q_PROPERTY(bool allowPap READ allowPap WRITE setAllowPap NOTIFY allowPapChanged)
bool allowPap() const;
Q_PROPERTY(bool allowChap READ allowChap WRITE setAllowChap NOTIFY allowChapChanged)
bool allowChap() const;
Q_PROPERTY(bool allowMschap READ allowMschap WRITE setAllowMschap NOTIFY allowMschapChanged)
bool allowMschap() const;
Q_PROPERTY(bool allowMschapv2 READ allowMschapv2 WRITE setAllowMschapv2 NOTIFY allowMschapv2Changed)
bool allowMschapv2() const;
Q_PROPERTY(bool allowEap READ allowEap WRITE setAllowEap NOTIFY allowEapChanged)
bool allowEap() const;
Q_PROPERTY(bool requireMppe READ requireMppe WRITE setRequireMppe NOTIFY requireMppeChanged)
bool requireMppe() const;
Q_PROPERTY(MppeType mppeType READ mppeType WRITE setMppeType NOTIFY mppeTypeChanged)
MppeType mppeType() const;
Q_PROPERTY(bool mppeStateful READ mppeStateful WRITE setMppeStateful NOTIFY mppeStatefulChanged)
bool mppeStateful() const;
Q_PROPERTY(bool bsdCompression READ bsdCompression WRITE setBsdCompression NOTIFY bsdCompressionChanged)
bool bsdCompression() const;
Q_PROPERTY(bool deflateCompression READ deflateCompression WRITE setDeflateCompression NOTIFY deflateCompressionChanged)
bool deflateCompression() const;
Q_PROPERTY(bool tcpHeaderCompression READ tcpHeaderCompression WRITE setTcpHeaderCompression NOTIFY tcpHeaderCompressionChanged)
bool tcpHeaderCompression() const;
Q_PROPERTY(bool sendPppEchoPackets READ sendPppEchoPackets WRITE setSendPppEchoPackets NOTIFY sendPppEchoPacketsChanged)
bool sendPppEchoPackets() const;
public Q_SLOTS:
// Basic properties
void setGateway(const QString &value);
void setUser(const QString &value);
void setPassword(const QString &value);
void setDomain(const QString &value);
// Advanced properties
void setAllowPap(bool value);
void setAllowChap(bool value);
void setAllowMschap(bool value);
void setAllowMschapv2(bool value);
void setAllowEap(bool value);
void setRequireMppe(bool value);
void setMppeType(MppeType value);
void setMppeStateful(bool value);
void setBsdCompression(bool value);
void setDeflateCompression(bool value);
void setTcpHeaderCompression(bool value);
void setSendPppEchoPackets(bool value);
Q_SIGNALS:
// Basic properties
void gatewayChanged(const QString &value);
void userChanged(const QString &value);
void passwordChanged(const QString &value);
void domainChanged(const QString &value);
// Advanced properties
void allowPapChanged(bool value);
void allowChapChanged(bool value);
void allowMschapChanged(bool value);
void allowMschapv2Changed(bool value);
void allowEapChanged(bool value);
void requireMppeChanged(bool value);
void mppeTypeChanged(MppeType value);
void mppeStatefulChanged(bool value);
void bsdCompressionChanged(bool value);
void deflateCompressionChanged(bool value);
void tcpHeaderCompressionChanged(bool value);
void sendPppEchoPacketsChanged(bool value);
protected:
class Priv;
std::shared_ptr<Priv> d;
};
}
connectivityqt::PptpConnection
Definition pptp-connection.h:28
connectivityqt::PptpConnection::tcpHeaderCompressionChanged
void tcpHeaderCompressionChanged(bool value)
connectivityqt::PptpConnection::allowMschapChanged
void allowMschapChanged(bool value)
connectivityqt::PptpConnection::mppeTypeChanged
void mppeTypeChanged(MppeType value)
connectivityqt::PptpConnection::gatewayChanged
void gatewayChanged(const QString &value)
connectivityqt::PptpConnection::allowChapChanged
void allowChapChanged(bool value)
connectivityqt::PptpConnection::requireMppe
bool requireMppe
Definition pptp-connection.h:79
connectivityqt::PptpConnection::setAllowEap
void setAllowEap(bool value)
connectivityqt::PptpConnection::setUser
void setUser(const QString &value)
connectivityqt::PptpConnection::sendPppEchoPacketsChanged
void sendPppEchoPacketsChanged(bool value)
connectivityqt::PptpConnection::deflateCompressionChanged
void deflateCompressionChanged(bool value)
connectivityqt::PptpConnection::setDeflateCompression
void setDeflateCompression(bool value)
connectivityqt::PptpConnection::sendPppEchoPackets
bool sendPppEchoPackets
Definition pptp-connection.h:97
connectivityqt::PptpConnection::setMppeType
void setMppeType(MppeType value)
connectivityqt::PptpConnection::deflateCompression
bool deflateCompression
Definition pptp-connection.h:91
connectivityqt::PptpConnection::allowMschapv2Changed
void allowMschapv2Changed(bool value)
connectivityqt::PptpConnection::setMppeStateful
void setMppeStateful(bool value)
connectivityqt::PptpConnection::allowMschapv2
bool allowMschapv2
Definition pptp-connection.h:73
connectivityqt::PptpConnection::setAllowMschapv2
void setAllowMschapv2(bool value)
connectivityqt::PptpConnection::d
std::shared_ptr< Priv > d
Definition pptp-connection.h:176
connectivityqt::PptpConnection::allowEap
bool allowEap
Definition pptp-connection.h:76
connectivityqt::PptpConnection::user
QString user
Definition pptp-connection.h:53
connectivityqt::PptpConnection::domainChanged
void domainChanged(const QString &value)
connectivityqt::PptpConnection::setBsdCompression
void setBsdCompression(bool value)
connectivityqt::PptpConnection::mppeStateful
bool mppeStateful
Definition pptp-connection.h:85
connectivityqt::PptpConnection::setRequireMppe
void setRequireMppe(bool value)
connectivityqt::PptpConnection::mppeStatefulChanged
void mppeStatefulChanged(bool value)
connectivityqt::PptpConnection::PptpConnection
PptpConnection(const QDBusObjectPath &path, const QDBusConnection &connection)
Definition pptp-connection.cpp:113
connectivityqt::PptpConnection::setAllowMschap
void setAllowMschap(bool value)
connectivityqt::PptpConnection::setDomain
void setDomain(const QString &value)
connectivityqt::PptpConnection::setAllowPap
void setAllowPap(bool value)
connectivityqt::PptpConnection::LOMIRI_DEFINES_PTRS
LOMIRI_DEFINES_PTRS(PptpConnection)
connectivityqt::PptpConnection::userChanged
void userChanged(const QString &value)
connectivityqt::PptpConnection::setSendPppEchoPackets
void setSendPppEchoPackets(bool value)
connectivityqt::PptpConnection::allowEapChanged
void allowEapChanged(bool value)
connectivityqt::PptpConnection::requireMppeChanged
void requireMppeChanged(bool value)
connectivityqt::PptpConnection::allowPapChanged
void allowPapChanged(bool value)
connectivityqt::PptpConnection::setGateway
void setGateway(const QString &value)
connectivityqt::PptpConnection::MppeType
MppeType
Definition pptp-connection.h:36
connectivityqt::PptpConnection::tcpHeaderCompression
bool tcpHeaderCompression
Definition pptp-connection.h:94
connectivityqt::PptpConnection::setAllowChap
void setAllowChap(bool value)
connectivityqt::PptpConnection::bsdCompression
bool bsdCompression
Definition pptp-connection.h:88
connectivityqt::PptpConnection::passwordChanged
void passwordChanged(const QString &value)
connectivityqt::PptpConnection::gateway
QString gateway
Definition pptp-connection.h:50
connectivityqt::PptpConnection::mppeType
MppeType mppeType
Definition pptp-connection.h:82
connectivityqt::PptpConnection::bsdCompressionChanged
void bsdCompressionChanged(bool value)
connectivityqt::PptpConnection::setPassword
void setPassword(const QString &value)
connectivityqt::PptpConnection::password
QString password
Definition pptp-connection.h:56
connectivityqt::PptpConnection::domain
QString domain
Definition pptp-connection.h:59
connectivityqt::PptpConnection::setTcpHeaderCompression
void setTcpHeaderCompression(bool value)
connectivityqt::PptpConnection::allowPap
bool allowPap
Definition pptp-connection.h:64
connectivityqt::PptpConnection::allowChap
bool allowChap
Definition pptp-connection.h:67
connectivityqt::PptpConnection::allowMschap
bool allowMschap
Definition pptp-connection.h:70
connectivityqt::VpnConnection::VpnConnection
VpnConnection(const QDBusObjectPath &path, const QDBusConnection &connection, QObject *parent=0)
Definition vpn-connection.cpp:70
connectivityqt
Definition connectivity.cpp:37
vpn-connection.h