summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpsearchresult.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/qhelpsearchresult.h')
-rw-r--r--src/assistant/help/qhelpsearchresult.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpsearchresult.h b/src/assistant/help/qhelpsearchresult.h
new file mode 100644
index 000000000..d8b42c158
--- /dev/null
+++ b/src/assistant/help/qhelpsearchresult.h
@@ -0,0 +1,37 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QHELPSEARCHRESULT_H
+#define QHELPSEARCHRESULT_H
+
+#include <QtHelp/qhelp_global.h>
+
+#include <QtCore/qshareddata.h>
+
+QT_BEGIN_NAMESPACE
+
+class QHelpSearchResultData;
+class QString;
+class QUrl;
+
+class QHELP_EXPORT QHelpSearchResult
+{
+public:
+ QHelpSearchResult();
+ QHelpSearchResult(const QHelpSearchResult &other);
+ QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet);
+ ~QHelpSearchResult();
+
+ QHelpSearchResult &operator=(const QHelpSearchResult &other);
+
+ QString title() const;
+ QUrl url() const;
+ QString snippet() const;
+
+private:
+ QSharedDataPointer<QHelpSearchResultData> d;
+};
+
+QT_END_NAMESPACE
+
+#endif // QHELPSEARCHRESULT_H