Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
assistantclient.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef ASSISTANTCLIENT_H
6#define ASSISTANTCLIENT_H
7
8#include "helpclient.h"
9
10#include <QtCore/qprocess.h>
11
13
14class QString;
15
17{
18public:
20
22 ~AssistantClient() override;
23
24 bool showPage(const QString &path, QString *errorMessage) override;
25 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
26 QString documentUrl(const QString &module) const override;
27
28 bool isRunning() const;
29
30private:
31 static QString binary();
32 void readyReadStandardError();
33 void processTerminated(int exitCode, QProcess::ExitStatus exitStatus);
34 bool sendCommand(const QString &cmd, QString *errorMessage);
35 bool ensureRunning(QString *errorMessage);
36
37 QProcess *m_process = nullptr;
38};
39
40QT_END_NAMESPACE
41
42#endif // ASSISTANTCLIENT_H
constexpr bool debugAssistantClient
bool isRunning() const
bool showPage(const QString &path, QString *errorMessage) override
~AssistantClient() override
bool activateIdentifier(const QString &identifier, QString *errorMessage) override
QString documentUrl(const QString &module) const override
Combined button and popup list for selecting options.