KTextAddons

networkmanager.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QObject>
10namespace TextTranslator
11{
12/**
13 * @brief The NetworkManager class
14 * @author Laurent Montel <montel@kde.org>
15 */
16class NetworkManager : public QObject
17{
19public:
20 explicit NetworkManager(QObject *parent = nullptr);
21 ~NetworkManager() override;
22 static NetworkManager *self();
23
24 [[nodiscard]] bool isOnline() const;
25
27 void networkStatusChanged(bool isOnline);
28};
29}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.