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 "qohosenums_p.h"
19#include <QtCore/private/qohoscommon_p.h>
20#include <QtCore/qbytearray.h>
21#include <QtCore/qmap.h>
22#include <QtCore/qpoint.h>
23#include <QtCore/qsize.h>
24#include <QtCore/qvariant.h>
25#include <QtGui/qwindow.h>
26#include <memory>
27#include <optional>
28#include <string>
29#include <vector>
30
31QT_BEGIN_NAMESPACE
32
33namespace QtOhosAppKit::Private {
34
35namespace QOhosShareKit {
36
37constexpr const char *mimeTextUriList = "text/uri-list";
38
40{
41 std::string mimeType;
42
43 std::optional<std::string> content;
44 std::optional<std::string> filePath;
45
46 std::optional<std::string> title;
47 std::optional<std::string> label;
48 std::optional<std::string> description;
50 std::optional<std::string> thumbnailFilePath;
52};
53
59
61
63
65
73
78
79std::shared_ptr<void> shareData(
80 QWindow *optInstanceMainWindow, const std::vector<SharedRecord> &recordsToShare,
81 ControllerOptions controllerOptions, std::function<void()> panelClosedCallback,
82 QOhosConsumer<ShareOperationResult> shareCompletedCallback);
83
84}
85
86}
87
88QT_END_NAMESPACE
89
90#endif // QOHOSSHAREKITBACKEND_P_H
Combined button and popup list for selecting options.
QtOhos::enums::kit::ShareKit::systemShare::ShareAbilityType ShareAbilityType
std::shared_ptr< void > shareData(QWindow *optInstanceMainWindow, const std::vector< SharedRecord > &recordsToShare, ControllerOptions controllerOptions, std::function< void()> panelClosedCallback, QOhosConsumer< ShareOperationResult > shareCompletedCallback)
QtOhos::enums::kit::ShareKit::systemShare::SharePreviewMode SharePreviewMode
QtOhos::enums::kit::ShareKit::systemShare::SelectionMode SelectionMode
std::shared_ptr< void > shareData(QWindow *optMainWindow, const QList< std::shared_ptr< SharedRecord > > &records, std::shared_ptr< ShareControllerOptions > controllerOptions, std::function< void()> panelClosedCallback, std::function< void(std::shared_ptr< ShareKit::ShareOperationResult >)> shareCompletedCallback)
std::shared_ptr< SharedRecord > createContentRecord(const QMimeType &mimeType, const QString &content)
Creates a shared "content" record with a given mimeType and content.
std::shared_ptr< SharedRecord > createUrlRecord(const QUrl &url)
Creates a shared record with a given url.
std::shared_ptr< SharedRecord > createFileRecord(const QFileInfo &fileInfo)
Creates a shared "file" record with a given fileInfo.
std::shared_ptr< ShareControllerOptions > createControllerOptions()
Creates a controller options instnace.
std::optional< std::vector< ShareAbilityType > > excludedAbilities