| 1 | /* |
| 2 | * This file is part of system-settings |
| 3 | * |
| 4 | * Copyright (C) 2016 Canonical Ltd. |
| 5 | * |
| 6 | * This program is free software: you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License version 3, as published |
| 8 | * by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 12 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 13 | * PURPOSE. See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef MOCK_WIFI_DBUS_HELPER_H |
| 20 | #define MOCK_WIFI_DBUS_HELPER_Hcxx . . $ `tests/mocks/Lomiri/SystemSettings/Wifi/MockDbusHelper.h:20:9`! |
| 21 | |
| 22 | #include <QObject> |
| 23 | #include <QStringList> |
| 24 | #include <QVariantMap> |
| 25 | |
| 26 | #include "MockNetworkPropertiesModel.h"cxx . . $ `<file>/tests/mocks/Lomiri/SystemSettings/Wifi/MockNetworkPropertiesModel.h`/ |
| 27 | |
| 28 | class MockDbusHelpercxx . . $ MockDbusHelper# : public QObjectcxx . . $ QObject# |
| 29 | { |
| 30 | Q_OBJECTcxx . . $ MockDbusHelper#staticMetaObject. |
| 31 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(MockNetworkPropertiesModel *networkPropertiesModel |
| 32 | READ networkPropertiesModel |
| 33 | NOTIFY networkPropertiesModelChanged) |
| 34 | public: |
| 35 | explicit MockDbusHelpercxx . . $ MockDbusHelper#MockDbusHelper(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = nullptr); |
| 36 | ~cxx . . $ MockDbusHelper#`~MockDbusHelper`(ced63f7c635d850d).MockDbusHelpercxx . . $ MockDbusHelper#() {}; |
| 37 | |
| 38 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void connectcxx . . $ MockDbusHelper#connect(77ce68c0d1063f).(QStringcxx . . $ QString# ssid, int security, int auth, QStringListcxx . . $ QStringList# usernames, QStringListcxx . . $ QStringList# password, QStringListcxx . . $ QStringList# certs, int p2auth); |
| 39 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> getPreviouslyConnectedWifiNetworkscxx . . $ MockDbusHelper#getPreviouslyConnectedWifiNetworks(c58e6b6884db9162).(); |
| 40 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void forgetConnectioncxx . . $ MockDbusHelper#forgetConnection(7df51288a9ebd664).(const QStringcxx . . $ QString# dbus_path); |
| 41 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! bool forgetActiveDevicecxx . . $ MockDbusHelper#forgetActiveDevice(c9857a73d68e59ba).(); |
| 42 | MockNetworkPropertiesModelcxx . . $ MockNetworkPropertiesModel# *networkPropertiesModelcxx . . $ MockDbusHelper#networkPropertiesModel(4aa53ebe7a0c7a60).(); |
| 43 | |
| 44 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void mockDeviceStateChangedcxx . . $ MockDbusHelper#mockDeviceStateChanged(b4d55b1286ff73e8).(uintcxx . . $ uint# newState, uintcxx . . $ uint# reason); |
| 45 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! QVariantMapcxx . . $ QVariantMap# getConnectArgumentscxx . . $ MockDbusHelper#getConnectArguments(3d2101c3acc1c1e9).(); // mock only |
| 46 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! bool getForgetActiveDeviceCalledcxx . . $ MockDbusHelper#getForgetActiveDeviceCalled(c9857a73d68e59ba).(); // mock only |
| 47 | |
| 48 | public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 49 | void nmDeviceStateChangedcxx . . $ MockDbusHelper#nmDeviceStateChanged(6df00707c193238d).(uintcxx . . $ uint#, uintcxx . . $ uint#, uintcxx . . $ uint#); |
| 50 | |
| 51 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 52 | void wifiIp4AddressChangedcxx . . $ MockDbusHelper#wifiIp4AddressChanged(7df51288a9ebd664).(QStringcxx . . $ QString# wifiIp4Address); |
| 53 | void deviceStateChangedcxx . . $ MockDbusHelper#deviceStateChanged(b4d55b1286ff73e8).(uintcxx . . $ uint# newState, uintcxx . . $ uint# reason); |
| 54 | void networkPropertiesModelChangedcxx . . $ MockDbusHelper#networkPropertiesModelChanged(49f6e7a06ebc5aa8).(); |
| 55 | private: |
| 56 | // This stores params passed to connect(). |
| 57 | bool forgetActiveDeviceCalledcxx . . $ MockDbusHelper#forgetActiveDeviceCalled. = false; |
| 58 | QVariantMapcxx . . $ QVariantMap# m_connectcxx . . $ MockDbusHelper#m_connect. = QVariantMapcxx . . $ QVariantMap#(); |
| 59 | MockNetworkPropertiesModelcxx . . $ MockNetworkPropertiesModel# m_networkPropertiesModelcxx . . $ MockDbusHelper#m_networkPropertiesModel.; |
| 60 | }; |
| 61 | |
| 62 | #endif // MOCK_WIFI_DBUS_HELPER_H |