1// Copyright (C) 2024 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 QHELPSEARCHRESULT_H
5#define QHELPSEARCHRESULT_H
6
7#include <QtHelp/qhelp_global.h>
8
9#include <QtCore/qshareddata.h>
10
11QT_BEGIN_NAMESPACE
12
13class QHelpSearchResultData;
14class QString;
15class QUrl;
16
17class QHELP_EXPORT QHelpSearchResult
18{
19public:
20 QHelpSearchResult();
21 QHelpSearchResult(const QHelpSearchResult &other);
22 QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet);
23 ~QHelpSearchResult();
24
25 QHelpSearchResult &operator=(const QHelpSearchResult &other);
26
27 QString title() const;
28 QUrl url() const;
29 QString snippet() const;
30
31private:
32 QSharedDataPointer<QHelpSearchResultData> d;
33};
34
35QT_END_NAMESPACE
36
37#endif // QHELPSEARCHRESULT_H
38

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qttools/src/assistant/help/qhelpsearchresult.h