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
qohossharekitbackend_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSSHAREKITBACKEND_P_H
5#define QOHOSSHAREKITBACKEND_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtHarmonyExtras/private/qohosenums_p.h>
19
20#include <QtGui/qwindow.h>
21
22#include <QtCore/qbytearray.h>
23#include <QtCore/qmap.h>
24#include <QtCore/qpoint.h>
25#include <QtCore/qsize.h>
26#include <QtCore/qvariant.h>
27#include <QtCore/private/qohoscommon_p.h>
28
29#include <memory>
30#include <optional>
31#include <string>
32#include <vector>
33
34QT_BEGIN_NAMESPACE
35
36namespace QtHarmonyExtras::Private {
37
38namespace QOhosShareKit {
39
40constexpr const char *mimeTextUriList = "text/uri-list";
41
43{
44 std::string mimeType;
45
46 std::optional<std::string> content;
47 std::optional<std::string> filePath;
48
49 std::optional<std::string> title;
50 std::optional<std::string> label;
51 std::optional<std::string> description;
53 std::optional<std::string> thumbnailFilePath;
55};
56
62
64
66
68
76
81
82std::shared_ptr<void> shareData(
83 QWindow *optInstanceMainWindow, const std::vector<SharedRecord> &recordsToShare,
84 ControllerOptions controllerOptions, std::function<void()> panelClosedCallback,
85 QOhosConsumer<ShareOperationResult> shareCompletedCallback);
86
87}
88
89}
90
91QT_END_NAMESPACE
92
93#endif // QOHOSSHAREKITBACKEND_P_H
std::shared_ptr< void > shareData(QWindow *optInstanceMainWindow, const std::vector< SharedRecord > &recordsToShare, ControllerOptions controllerOptions, std::function< void()> panelClosedCallback, QOhosConsumer< ShareOperationResult > shareCompletedCallback)
std::optional< std::vector< ShareAbilityType > > excludedAbilities