| 1 | /* |
| 2 | * Copyright © 2015 Canonical Ltd. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU Lesser General Public License version 3, |
| 6 | * as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * Authors: |
| 17 | * Pete Woods <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <QDBusConnection> |
| 23 | #include <QDBusObjectPath> |
| 24 | #include <QObject> |
| 25 | |
| 26 | #include <lomiri/util/DefinesPtrs.h> |
| 27 | |
| 28 | namespace connectivityqtcxx . . $ connectivityqt/ |
| 29 | { |
| 30 | |
| 31 | class Q_DECL_EXPORTcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:235:13`! VpnConnectioncxx . . $ connectivityqt/VpnConnection# : public QObjectcxx . . $ QObject# |
| 32 | { |
| 33 | Q_OBJECTcxx . . $ connectivityqt/VpnConnection#QPrivateSignal# |
| 34 | |
| 35 | public: |
| 36 | LOMIRI_DEFINES_PTRScxx . . $ connectivityqt/VpnConnection#UPtr#(VpnConnection); |
| 37 | |
| 38 | Q_ENUMScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:111:9`!(Type) |
| 39 | |
| 40 | enum Typecxx . . $ connectivityqt/VpnConnection#Type# |
| 41 | { |
| 42 | OPENVPNcxx . . $ connectivityqt/VpnConnection#OPENVPN., |
| 43 | PPTPcxx . . $ connectivityqt/VpnConnection#PPTP. |
| 44 | }; |
| 45 | |
| 46 | VpnConnectioncxx . . $ connectivityqt/VpnConnection#VpnConnection(7154ee1dbc4c98df).(const QDBusObjectPathcxx . . $ QDBusObjectPath#& path, const QDBusConnectioncxx . . $ QDBusConnection#& connection, QObjectcxx . . $ QObject#* parent = 0); |
| 47 | |
| 48 | virtual ~cxx . . $ connectivityqt/VpnConnection#`~VpnConnection`(ced63f7c635d850d).VpnConnectioncxx . . $ connectivityqt/VpnConnection#(); |
| 49 | |
| 50 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QDBusObjectPath path READ path) |
| 51 | QDBusObjectPathcxx . . $ QDBusObjectPath# pathcxx . . $ connectivityqt/VpnConnection#path(9482d9ffede4b34a).() const; |
| 52 | |
| 53 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString id READ id WRITE setId NOTIFY idChanged) |
| 54 | QStringcxx . . $ QString# idcxx . . $ connectivityqt/VpnConnection#id(6ef7b6c27b00b43d).() const; |
| 55 | |
| 56 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(bool neverDefault READ neverDefault WRITE setNeverDefault NOTIFY neverDefaultChanged) |
| 57 | bool neverDefaultcxx . . $ connectivityqt/VpnConnection#neverDefault(50ce9a9e25b4a850).() const; |
| 58 | |
| 59 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(bool active READ active WRITE setActive NOTIFY activeChanged) |
| 60 | bool activecxx . . $ connectivityqt/VpnConnection#active(50ce9a9e25b4a850).() const; |
| 61 | |
| 62 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(bool activatable READ activatable NOTIFY activatableChanged) |
| 63 | bool activatablecxx . . $ connectivityqt/VpnConnection#activatable(50ce9a9e25b4a850).() const; |
| 64 | |
| 65 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(Type type READ type) |
| 66 | virtual Typecxx . . $ connectivityqt/VpnConnection#Type# typecxx . . $ connectivityqt/VpnConnection#type(e3155f891d070e56).() const = 0; |
| 67 | |
| 68 | public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 69 | void setIdcxx . . $ connectivityqt/VpnConnection#setId(7fba01612ab56717).(const QStringcxx . . $ QString#& id) const; |
| 70 | |
| 71 | void setNeverDefaultcxx . . $ connectivityqt/VpnConnection#setNeverDefault(a85845bc2b7828e2).(bool neverDefault) const; |
| 72 | |
| 73 | void setActivecxx . . $ connectivityqt/VpnConnection#setActive(a85845bc2b7828e2).(bool active) const; |
| 74 | |
| 75 | void updateSecretscxx . . $ connectivityqt/VpnConnection#updateSecrets(83f5f38750778ac8).() const; |
| 76 | |
| 77 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 78 | void idChangedcxx . . $ connectivityqt/VpnConnection#idChanged(3520e46b33348bf6).(const QStringcxx . . $ QString#& id); |
| 79 | |
| 80 | void neverDefaultChangedcxx . . $ connectivityqt/VpnConnection#neverDefaultChanged(b45ddcbc8423892c).(bool neverDefault); |
| 81 | |
| 82 | void activeChangedcxx . . $ connectivityqt/VpnConnection#activeChanged(b45ddcbc8423892c).(bool active); |
| 83 | |
| 84 | void activatableChangedcxx . . $ connectivityqt/VpnConnection#activatableChanged(b45ddcbc8423892c).(bool active); |
| 85 | |
| 86 | void removecxx . . $ connectivityqt/VpnConnection#remove(83f5f38750778ac8).() const; |
| 87 | |
| 88 | protected: |
| 89 | class Privcxx . . $ connectivityqt/VpnConnection#Priv#; |
| 90 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<Privcxx . . $ connectivityqt/VpnConnection#Priv#> dcxx . . $ connectivityqt/VpnConnection#d.; |
| 91 | }; |
| 92 | |
| 93 | } |
| 94 | |
| 95 | Q_DECLARE_METATYPEcxx . . $ QMetaTypeId#(connectivityqt::VpnConnection::Type) |