Kstars

indiwebmanager.h
1 /*
2  SPDX-FileCopyrightText: 2016 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QNetworkAccessManager>
10 #include <QFuture>
11 
12 class QByteArray;
13 class QJsonDocument;
14 class QUrl;
15 
16 class ProfileInfo;
17 
18 namespace INDI
19 {
20 namespace WebManager
21 {
22 bool getWebManagerResponse(QNetworkAccessManager::Operation operation, const QUrl &url, QJsonDocument *reply, QByteArray *data = nullptr);
23 bool isOnline(ProfileInfo *pi);
24 bool checkVersion(ProfileInfo *pi);
25 bool syncCustomDrivers(ProfileInfo *pi);
26 bool areDriversRunning(ProfileInfo *pi);
27 bool startProfile(ProfileInfo *pi);
28 bool stopProfile(ProfileInfo *pi);
29 bool restartDriver(ProfileInfo *pi, const QString &label);
30 }
31 
32 namespace AsyncWebManager
33 {
34 QFuture<bool> isOnline(ProfileInfo *pi);
35 QFuture<bool> isStellarMate(ProfileInfo *pi);
36 QFuture<bool> syncCustomDrivers(ProfileInfo *pi);
37 QFuture<bool> areDriversRunning(ProfileInfo *pi);
38 QFuture<bool> startProfile(ProfileInfo *pi);
39 QFuture<bool> stopProfile(ProfileInfo *pi);
40 }
41 
42 }
NETWORKMANAGERQT_EXPORT bool checkVersion(const int x, const int y, const int z)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.