45 #include <QtCore/qmimedata.h> 56 virtual ~QMimeSource();
57 virtual const char*
format(
int n = 0)
const = 0;
58 virtual bool provides(
const char*)
const;
59 virtual QByteArray encodedData(
const char*)
const = 0;
70 #include <QtCore/qvariant.h> 86 virtual bool canConvertFromMime(
const FORMATETC &formatetc,
const QMimeData *mimeData)
const = 0;
91 virtual bool canConvertToMime(
const QString &mimeType, IDataObject *pDataObj)
const = 0;
104 static QStringList allMimesForFormats(IDataObject *pDataObj);
110 #if defined(Q_WS_MAC) 121 enum QMacMimeType { MIME_DND=0x01, MIME_CLIP=0x02, MIME_QT_CONVERTOR=0x04, MIME_ALL=MIME_DND|MIME_CLIP };
131 virtual QString convertorName()=0;
132 virtual int countFlavors()=0;
133 virtual int flavor(
int index)=0;
134 virtual bool canConvert(
const QString &
mime,
int flav)=0;
135 virtual QString mimeFor(
int flav)=0;
136 virtual int flavorFor(
const QString &mime)=0;
146 MIME_QT_CONVERTOR=0x04,
147 MIME_QT3_CONVERTOR=0x08,
148 MIME_ALL=MIME_DND|MIME_CLIP
153 static void initialize();
159 virtual QString convertorName() = 0;
The QVariant class acts like a union for the most common Qt data types.
The QWindowsMime class maps open-standard MIME to Window Clipboard formats.
#define QT_END_NAMESPACE
This macro expands to.
Q_GUI_EXPORT void qRegisterDraggedTypes(const QStringList &types)
The QByteArray class provides an array of bytes.
#define QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE.
struct tagFORMATETC FORMATETC
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME typ...
static QString flavorToMime(QMacMimeType, int)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QList< QMacMime * > all(QMacMimeType)
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
Type
This enum type defines the types of variable that a QVariant can contain.
struct tagSTGMEDIUM STGMEDIUM
The QMimeData class provides a container for data that records information about its MIME type...
static QMacMime * convertor(QMacMimeType, const QString &, int)
#define QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QMacPasteboardMime class converts between a MIME type and a.
The QList class is a template class that provides lists.