| 1 | /* |
| 2 | * Copyright (C) 2014 Canonical Ltd. |
| 3 | * |
| 4 | * Authors: |
| 5 | * Jussi Pakkanen <[email protected]> |
| 6 | * |
| 7 | * This program is free software: you can redistribute it and/or modify it |
| 8 | * under the terms of the GNU General Public License version 3, as published |
| 9 | * by the Free Software Foundation. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 13 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
| 14 | * details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef WIFI_DBUS_HELPER |
| 21 | #define WIFI_DBUS_HELPERcxx . . $ `plugins/wifi/wifidbushelper.h:21:9`! |
| 22 | |
| 23 | #include "networkproperties.h"cxx . . $ `<file>/plugins/wifi/networkproperties.h`/ |
| 24 | |
| 25 | #include <QObject> |
| 26 | #include <QtDBus> |
| 27 | |
| 28 | /** |
| 29 | * For sending specific dbus messages from QML. |
| 30 | */ |
| 31 | |
| 32 | class WifiDbusHelpercxx . . $ WifiDbusHelper# final : public QObjectcxx . . $ QObject# { |
| 33 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 34 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(NetworkPropertiesModel *networkPropertiesModel |
| 35 | READ networkPropertiesModel |
| 36 | NOTIFY networkPropertiesModelChanged) |
| 37 | |
| 38 | public: |
| 39 | explicit WifiDbusHelpercxx . . $ WifiDbusHelper#WifiDbusHelper(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = nullptr); |
| 40 | explicit WifiDbusHelpercxx . . $ WifiDbusHelper#WifiDbusHelper(ad2c55c36a84836e).(const QDBusConnectioncxx . . $ QDBusConnection# &dbus, QObjectcxx . . $ QObject# *parent = nullptr); |
| 41 | ~cxx . . $ WifiDbusHelper#`~WifiDbusHelper`(ced63f7c635d850d).WifiDbusHelpercxx . . $ WifiDbusHelper#() {}; |
| 42 | |
| 43 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void connectcxx . . $ WifiDbusHelper#connect(77ce68c0d1063f).(QStringcxx . . $ QString# ssid, int security, int auth, QStringListcxx . . $ QStringList# usernames, QStringListcxx . . $ QStringList# password, QStringListcxx . . $ QStringList# certs, int p2auth); |
| 44 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> getPreviouslyConnectedWifiNetworkscxx . . $ WifiDbusHelper#getPreviouslyConnectedWifiNetworks(c58e6b6884db9162).(); |
| 45 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void forgetConnectioncxx . . $ WifiDbusHelper#forgetConnection(7df51288a9ebd664).(const QStringcxx . . $ QString# dbus_path); |
| 46 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! bool forgetActiveDevicecxx . . $ WifiDbusHelper#forgetActiveDevice(c9857a73d68e59ba).(); |
| 47 | |
| 48 | NetworkPropertiesModelcxx . . $ NetworkPropertiesModel# *networkPropertiesModelcxx . . $ WifiDbusHelper#networkPropertiesModel(6468f0440e94c1cf).(); |
| 49 | |
| 50 | public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 51 | void nmDeviceStateChangedcxx . . $ WifiDbusHelper#nmDeviceStateChanged(6df00707c193238d).(uintcxx . . $ uint#, uintcxx . . $ uint#, uintcxx . . $ uint#); |
| 52 | |
| 53 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 54 | void wifiIp4AddressChangedcxx . . $ WifiDbusHelper#wifiIp4AddressChanged(7df51288a9ebd664).(QStringcxx . . $ QString# wifiIp4Address); |
| 55 | void deviceStateChangedcxx . . $ WifiDbusHelper#deviceStateChanged(b4d55b1286ff73e8).(uintcxx . . $ uint# newState, uintcxx . . $ uint# reason); |
| 56 | void networkPropertiesModelChangedcxx . . $ WifiDbusHelper#networkPropertiesModelChanged(49f6e7a06ebc5aa8).(); |
| 57 | |
| 58 | private: |
| 59 | QDBusConnectioncxx . . $ QDBusConnection# m_systemBusConnectioncxx . . $ WifiDbusHelper#m_systemBusConnection.; |
| 60 | void updateNetworkPropertiesModelcxx . . $ WifiDbusHelper#updateNetworkPropertiesModel(49f6e7a06ebc5aa8).(); |
| 61 | NetworkPropertiesModelcxx . . $ NetworkPropertiesModel# m_networkPropertiesModelcxx . . $ WifiDbusHelper#m_networkPropertiesModel.; |
| 62 | }; |
| 63 | |
| 64 | |
| 65 | #endif |