vpn-connection.h
QDBusConnection
QDBusObjectPath
QObject
lomiri/util/DefinesPtrs.h
openvpn-connection.h
pptp-connection.h
vpn-connection.cpp
vpn-connections-list-model.h
vpn-connection.h
QDBusConnection
QDBusObjectPath
QObject
lomiri/util/DefinesPtrs.h
connectivity.cpp
connectivity.h
openvpn-connection.cpp
openvpn-connection.h
pptp-connection.cpp
pptp-connection.h
vpn-connection.cpp
vpn-connection.h
vpn-connections-list-model.cpp
vpn-connections-list-model.h
networking-status.cpp
connectivityqt::VpnConnection
connectivityqt

    /*
    *Copyright©2015CanonicalLtd.
    *
    *Thisprogramisfreesoftware:youcanredistributeitand/ormodifyit
    *underthetermsoftheGNULesserGeneralPublicLicenseversion3,
    *aspublishedbytheFreeSoftwareFoundation.
    *
    *Thisprogramisdistributedinthehopethatitwillbeuseful,
    *butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof
    *MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe
    *GNULesserGeneralPublicLicenseformoredetails.
    *
    *YoushouldhavereceivedacopyoftheGNULesserGeneralPublicLicense
    *alongwiththisprogram.Ifnot,see<http://www.gnu.org/licenses/>.
    *
    *Authors:
    *PeteWoods<pete.woods@canonical.com>
    */

    #pragmaonce

    #include<QDBusConnection>
    #include<QDBusObjectPath>
    #include<QObject>

    #include<lomiri/util/DefinesPtrs.h>

    namespaceconnectivityqt
    {

    classQ_DECL_EXPORTVpnConnection:publicQObject
    {
    Q_OBJECT

    public:
    LOMIRI_DEFINES_PTRS(VpnConnection);

    Q_ENUMS(Type)

    enumType
    {
    OPENVPN,
    PPTP
    };

    VpnConnection(constQDBusObjectPath&path,constQDBusConnection&connection,QObject*parent=0);

    virtual~VpnConnection();

    Q_PROPERTY(QDBusObjectPathpathREADpath)
    QDBusObjectPathpath()const;

    Q_PROPERTY(QStringidREADidWRITEsetIdNOTIFYidChanged)
    QStringid()const;

    Q_PROPERTY(boolneverDefaultREADneverDefaultWRITEsetNeverDefaultNOTIFYneverDefaultChanged)
    boolneverDefault()const;

    Q_PROPERTY(boolactiveREADactiveWRITEsetActiveNOTIFYactiveChanged)
    boolactive()const;

    Q_PROPERTY(boolactivatableREADactivatableNOTIFYactivatableChanged)
    boolactivatable()const;

    Q_PROPERTY(TypetypeREADtype)
    virtualTypetype()const=0;

    publicQ_SLOTS:
    voidsetId(constQString&id)const;

    voidsetNeverDefault(boolneverDefault)const;

    voidsetActive(boolactive)const;

    voidupdateSecrets()const;

    Q_SIGNALS:
    voididChanged(constQString&id);

    voidneverDefaultChanged(boolneverDefault);

    voidactiveChanged(boolactive);

    voidactivatableChanged(boolactive);

    voidremove()const;

    protected:
    classPriv;
    std::shared_ptr<Priv>d;
    };

    }

    Q_DECLARE_METATYPE(connectivityqt::VpnConnection::Type)