PimCommon::NetworkManager Class
The NetworkManager class manages network status Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <PimCommon/NetworkManager> |
| CMake: | find_package(KPim6PimCommon REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::PimCommon) |
| Inherits: | QObject |
Public Functions
| NetworkManager(QObject *parent = nullptr) | |
| virtual | ~NetworkManager() override |
| bool | isOnline() const |
Signals
| void | networkStatusChanged(bool isOnline) |
Static Public Members
| PimCommon::NetworkManager * | self() |
Detailed Description
Member Function Documentation
[explicit] NetworkManager::NetworkManager(QObject *parent = nullptr)
Constructs a NetworkManager. @param parent The parent QObject
[override virtual noexcept] NetworkManager::~NetworkManager()
Destructs the NetworkManager.
bool NetworkManager::isOnline() const
Returns whether the network is online. @return true if the network is online, false otherwise
[signal] void NetworkManager::networkStatusChanged(bool isOnline)
Emitted when the network status changes. @param isOnline true if the network is online, false otherwise
[static] PimCommon::NetworkManager *NetworkManager::self()
Returns the singleton instance of NetworkManager. @return The singleton instance