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
4#ifndef ASSISTANTCLIENT_H
5#define ASSISTANTCLIENT_H
6
7#include "helpclient.h"
8
9#include <QtCore/qprocess.h>
10
12
13class QString;
14
16{
17public:
19
21 ~AssistantClient() override;
22
23 bool showPage(const QString &path, QString *errorMessage) override;
24 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
25 QString documentUrl(const QString &module) const override;
26
27 bool isRunning() const;
28
29private:
30 static QString binary();
31 void readyReadStandardError();
32 void processTerminated(int exitCode, QProcess::ExitStatus exitStatus);
33 bool sendCommand(const QString &cmd, QString *errorMessage);
34 bool ensureRunning(QString *errorMessage);
35
36 QProcess *m_process = nullptr;
37};
38
39QT_END_NAMESPACE
40
41#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.