| 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 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | class QHelpSearchResultData; |
| 14 | class QString; |
| 15 | class QUrl; |
| 16 | |
| 17 | class QHELP_EXPORT QHelpSearchResult |
| 18 | { |
| 19 | public: |
| 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 | |
| 31 | private: |
| 32 | QSharedDataPointer<QHelpSearchResultData> d; |
| 33 | }; |
| 34 | |
| 35 | QT_END_NAMESPACE |
| 36 | |
| 37 | #endif // QHELPSEARCHRESULT_H |
| 38 |
