/* * Copyright © 2012-2013 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 . * * Authored by: Thomas Voß */ #ifndef MOCK_CONNECTIVITY_MANAGER_H_ #define MOCK_CONNECTIVITY_MANAGER_H_ #include #include #include struct MockConnectivityManager : public com::ubuntu::location::connectivity::Manager { /** * @brief Returns the getable/observable connectivity state of the system. */ MOCK_CONST_METHOD0(state, const core::Property&()); /** * @brief Returns a getable/observable boolean property that indicates the state of the wifi subsystem. * * If the property's value is false, the Wifi subsystem is turned off (e.g., in flight mode). */ MOCK_CONST_METHOD0(is_wifi_enabled, const core::Property&()); /** * @brief Returns a getable/observable boolean property that indicates the state of the wwan subsystem. * * If the property's value is false, the WWan subsystem is turned off (e.g., in flight mode). */ MOCK_CONST_METHOD0(is_wwan_enabled, const core::Property&()); /** * @brief Returns a getable/observable boolean property that indicates the state of the wifi hardware. * * If the property's value is false, the Wifi HW is turned off. */ MOCK_CONST_METHOD0(is_wifi_hardware_enabled, const core::Property&()); /** * @brief Returns a getable/observable boolean property that indicates the state of the wwan hardware. * * If the property's value is false, the WWan HW is turned off. */ MOCK_CONST_METHOD0(is_wwan_hardware_enabled, const core::Property&()); /** * @brief Returns a getable/observable property that describes the characteristics * of the active network connection. */ MOCK_CONST_METHOD0(active_connection_characteristics, const core::Property&()); /** * @brief request_scan_for_wireless_networks schedules a scan for visible wireless networks. */ MOCK_METHOD0(request_scan_for_wireless_networks, void()); /** * @brief wireless_network_scan_finished is emitted when a scan for wireless networks ends. * * Please note that the signal may also be raised for scans that have been * initiated by other system components. * */ MOCK_CONST_METHOD0(wireless_network_scan_finished, const core::Signal<>&()); /** * @brief wireless_network_added is emitted whenever a new wifi becomes visible. */ MOCK_CONST_METHOD0(wireless_network_added, const core::Signal& ()); /** * @brief wireless_network_removed is emitted whenever a wifi disappears. */ MOCK_CONST_METHOD0(wireless_network_removed, const core::Signal& ()); /** * @brief Enumerate all wireless networks visible to the device. */ MOCK_CONST_METHOD1( enumerate_visible_wireless_networks, void(const std::function&)); /** * @brief connected_cell_added is emitted whenever the underlying modem connects to a new cell. */ MOCK_CONST_METHOD0( connected_cell_added, const core::Signal& ()); /** * @brief connected_cell_removed is emitted whenever the underlying modem disconnects from a cell. */ MOCK_CONST_METHOD0( connected_cell_removed, const core::Signal& ()); /** * @brief Enumerate all radio cells that the device is connected to. */ MOCK_CONST_METHOD1( enumerate_connected_radio_cells, void(const std::function&)); }; #endif // MOCK_CONNECTIVITY_MANAGER_H_