summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsmimeregistry.h
Commit message (Collapse)AuthorAgeFilesLines
* Reintroduce converter APIs for supporting native clipboard formatsVolker Hilsheimer2022-11-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Qt 5, QWin(dows)Mime and QMacMime lived in the respective Extras modules, which were removed and partially folded into the relevant modules in Qt. QWindowsMime and QMacMime continued to provide the abstraction for implementing built-in support for native clipboard formats and UTIs within Qt, but only as private APIs. After the recent clean up of those APIs and respective infrastructure, we can now bring them back as public converter interfaces. Application developers can subclass those and instantiate an instance of their implementation to add support for platform or application specific data formats. These interfaces are not in the QNativeInterface namespace, as applications don't call into Windows or macOS using those interfaces. I.e. there is no class on which an application would call auto *converter= nativeInterface<QWindowsMimeConverter>(); Also, since applications override those converter types, we do want to guarantee binary and source compatibility. [ChangeLog][QtGui][QWindowsMimeConverter] Reintroduced to allow applications to add support for conversion from and to Windows-native clipboard formats to MIME-encoded data. [ChangeLog][QtGui][QUtiMimeConverter] Reintroduced to allow applications to add support for conversion from and to clipboard data on macOS and iOS to MIME-encoded data. Fixes: QTBUG-93632 Change-Id: Iebd909c3970015d203f59d5ab15e306b3d312f6e Reviewed-by: Yuhang Zhao <2546789017@qq.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Rename QWindowsMimeConverter to QWindowsMimeRegistry, rename filesVolker Hilsheimer2022-11-031-0/+58
The class registers converters and provides access to the converter able to handle specific formats. But it is not a converter itself. The converter would then be the implementation of the virtual interface, e.g. QWindowsMime subclasses. Task-number: QTBUG-93632 Change-Id: I150ef28e9bcead4291d72e0b0aa660be3fcd4a8a Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>