Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmacmimeregistry_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QMACMIMEREGISTRY_H
5#define QMACMIMEREGISTRY_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
19#include <QtGui/private/qtguiglobal_p.h>
20#include <QtGui/qutimimeconverter.h>
21
22#include <CoreFoundation/CoreFoundation.h>
23
25
26namespace QMacMimeRegistry {
27 Q_GUI_EXPORT void initializeMimeTypes();
28 Q_GUI_EXPORT void destroyMimeTypes();
29
30 Q_GUI_EXPORT void registerMimeConverter(QUtiMimeConverter *);
31 Q_GUI_EXPORT void unregisterMimeConverter(QUtiMimeConverter *);
32
33 Q_GUI_EXPORT QList<QUtiMimeConverter *> all(QUtiMimeConverter::HandlerScope scope);
34 Q_GUI_EXPORT QString flavorToMime(QUtiMimeConverter::HandlerScope scope, const QString &flav);
35
36 Q_GUI_EXPORT void registerDraggedTypes(const QStringList &types);
37 Q_GUI_EXPORT const QStringList& enabledDraggedTypes();
38};
39
41
42#endif // QMACMIMEREGISTRY_H
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QUtiMimeConverter class converts between a MIME type and a \l{https://developer....
void unregisterMimeConverter(QUtiMimeConverter *macMime)
const QStringList & enabledDraggedTypes()
QList< QUtiMimeConverter * > all(QUtiMimeConverter::HandlerScope scope)
QString flavorToMime(QUtiMimeConverter::HandlerScope scope, const QString &uti)
void registerDraggedTypes(const QStringList &types)
void registerMimeConverter(QUtiMimeConverter *macMime)
Combined button and popup list for selecting options.
GLsizei GLenum GLenum * types