Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
helpclient.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
HELPCLIENT_H
6
#
define
HELPCLIENT_H
7
8
#
include
<
QtCore
/
qtclasshelpermacros
.
h
>
9
#
include
<
QtCore
/
qtypes
.
h
>
10
11
#
include
<
memory
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QString;
16
17
enum
class
HelpClientType
:
quint8
{
Assistant
,
Web
,
Python
};
18
19
class
HelpClient
20
{
21
public
:
22
Q_DISABLE_COPY_MOVE
(
HelpClient
)
23
24
HelpClient
()
noexcept
=
default
;
25
virtual
~
HelpClient
() =
default
;
26
27
virtual
bool
showPage
(
const
QString &path, QString *errorMessage) = 0;
28
virtual
bool
activateIdentifier
(
const
QString &identifier, QString *errorMessage) = 0;
29
virtual
QString
documentUrl
(
const
QString &module)
const
= 0;
30
31
// Root of the Qt Widgets Designer documentation
32
QString
designerManualUrl
()
const
;
33
34
static
std
::
unique_ptr
<
HelpClient
>
create
(
HelpClientType
type);
35
};
36
37
class
WebHelpClient
:
public
HelpClient
38
{
39
public
:
40
Q_DISABLE_COPY_MOVE
(
WebHelpClient
)
41
WebHelpClient
()
noexcept
=
default
;
42
~
WebHelpClient
()
override
=
default
;
43
44
bool
showPage
(
const
QString &path, QString *errorMessage)
override
;
45
bool
activateIdentifier
(
const
QString &identifier, QString *errorMessage)
override
;
46
QString
documentUrl
(
const
QString &module)
const
override
;
47
48
private
:
49
QString webPage(
const
QString &identifier);
50
};
51
52
class
PythonWebHelpClient
:
public
WebHelpClient
53
{
54
public
:
55
Q_DISABLE_COPY_MOVE
(
PythonWebHelpClient
)
56
PythonWebHelpClient
()
noexcept
=
default
;
57
~
PythonWebHelpClient
()
override
=
default
;
58
59
bool
activateIdentifier
(
const
QString &identifier, QString *errorMessage)
override
;
60
61
private
:
62
QString webPage(
const
QString &identifier);
63
};
64
65
QT_END_NAMESPACE
66
67
#
endif
// HELPCLIENT_H
HelpClient
Definition
helpclient.h:20
HelpClient::~HelpClient
virtual ~HelpClient()=default
HelpClient::documentUrl
virtual QString documentUrl(const QString &module) const =0
HelpClient::activateIdentifier
virtual bool activateIdentifier(const QString &identifier, QString *errorMessage)=0
HelpClient::create
static std::unique_ptr< HelpClient > create(HelpClientType type)
Definition
helpclient.cpp:25
HelpClient::showPage
virtual bool showPage(const QString &path, QString *errorMessage)=0
HelpClient::designerManualUrl
QString designerManualUrl() const
Definition
helpclient.cpp:20
MainWindowBase
Definition
mainwindow.h:34
PythonWebHelpClient
Definition
helpclient.h:53
PythonWebHelpClient::~PythonWebHelpClient
~PythonWebHelpClient() override=default
PythonWebHelpClient::activateIdentifier
bool activateIdentifier(const QString &identifier, QString *errorMessage) override
Definition
helpclient.cpp:93
QDesignerToolWindow
Definition
qdesigner_toolwindow.h:40
QDesignerWorkbench
Definition
qdesigner_workbench.h:44
QDesigner
Definition
qdesigner.h:43
QDesigner::parseCommandLineArguments
ParseArgumentsResult parseCommandLineArguments()
Definition
qdesigner.cpp:225
QDesigner::QDesigner
QDesigner(int &argc, char **argv)
Definition
qdesigner.cpp:56
QDesigner::event
bool event(QEvent *ev) override
\reimp
Definition
qdesigner.cpp:306
QDesigner::setMainWindow
void setMainWindow(MainWindowBase *tw)
Definition
qdesigner.cpp:334
QDesigner::workbench
QDesignerWorkbench * workbench() const
Definition
qdesigner.cpp:113
QDesigner::isServerOrClientEnabled
bool isServerOrClientEnabled() const
Definition
qdesigner.cpp:301
QDesigner::~QDesigner
~QDesigner() override
Definition
qdesigner.cpp:69
QDesigner::mainWindow
MainWindowBase * mainWindow() const
Definition
qdesigner.cpp:339
WebHelpClient
Definition
helpclient.h:38
WebHelpClient::documentUrl
QString documentUrl(const QString &module) const override
Definition
helpclient.cpp:78
WebHelpClient::activateIdentifier
bool activateIdentifier(const QString &identifier, QString *errorMessage) override
Definition
helpclient.cpp:71
WebHelpClient::~WebHelpClient
~WebHelpClient() override=default
WebHelpClient::showPage
bool showPage(const QString &path, QString *errorMessage) override
Definition
helpclient.cpp:49
HelpClientType
HelpClientType
Definition
helpclient.h:17
HelpClientType::Assistant
@ Assistant
Definition
helpclient.h:17
HelpClientType::Python
@ Python
Definition
helpclient.h:17
HelpClientType::Web
@ Web
Definition
helpclient.h:17
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
Options
Definition
main.cpp:95
Options::server
bool server
Definition
qdesigner.h:36
Options::enableInternalDynamicProperties
bool enableInternalDynamicProperties
Definition
qdesigner.h:38
Options::helpMode
HelpClientType helpMode
Definition
qdesigner.h:39
Options::resourceDir
QString resourceDir
Definition
qdesigner.h:32
Options::tcpClientPort
quint16 tcpClientPort
Definition
qdesigner.h:37
Options::files
QStringList files
Definition
qdesigner.h:31
Options::qtVersion
std::optional< QVersionNumber > qtVersion
Definition
qdesigner.h:34
Options::pluginPaths
QStringList pluginPaths
Definition
qdesigner.h:33
Options::localSocketServerName
QString localSocketServerName
Definition
qdesigner.h:35
qttools
src
shared
helpclient
helpclient.h
Generated on
for Qt by
1.18.0