Kstars

indiwebmanager.h
1/*
2 SPDX-FileCopyrightText: 2016 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QNetworkAccessManager>
10#include <QFuture>
11
12class QByteArray;
13class QJsonDocument;
14class QUrl;
15
16class ProfileInfo;
17
18namespace INDI
19{
20namespace WebManager
21{
22bool getWebManagerResponse(QNetworkAccessManager::Operation operation, const QUrl &url, QJsonDocument *reply, QByteArray *data = nullptr);
23bool isOnline(const QSharedPointer<ProfileInfo> &pi);
25bool syncCustomDrivers(const QSharedPointer<ProfileInfo> &pi);
26bool areDriversRunning(const QSharedPointer<ProfileInfo> &pi);
27bool startProfile(const QSharedPointer<ProfileInfo> &pi);
28bool stopProfile(const QSharedPointer<ProfileInfo> &pi);
29bool restartDriver(const QSharedPointer<ProfileInfo> &pi, const QString &label);
30}
31
32namespace AsyncWebManager
33{
35QFuture<bool> isStellarMate(const QSharedPointer<ProfileInfo> &pi);
36QFuture<bool> syncCustomDrivers(const QSharedPointer<ProfileInfo> &pi);
37QFuture<bool> areDriversRunning(const QSharedPointer<ProfileInfo> &pi);
38QFuture<bool> startProfile(const QSharedPointer<ProfileInfo> &pi);
39QFuture<bool> stopProfile(const QSharedPointer<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-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.