The QMacMime class maps open-standard MIME to Mac flavors.
.PP
Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Mac although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in Mac formats.
.PP
By instantiating subclasses of QMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats.
.PP
Qt has predefined support for the following Mac flavors:
.TP
kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag.
.TP
kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag.
.TP
kScrapFlavorTypePicture - converted to "image/format", where format is a Qt image format, and supported by QImageDrag.
.TP
kDragFlavorTypeHFS - converted to "text/uri-list", and supported by QUriDrag.
.PP
You can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime().
.PP
See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QMacMime::QMacMime ( char t )"
Constructs a new conversion object of type \fIt\fR, adding it to the globally accessed list of available convertors.
.SH "QMacMime::~QMacMime ()\fC [virtual]\fR"
Destroys a conversion object, removing it from the global list of available convertors.
.SH "QPtrList<QMacMime> QMacMime::all ( QMacMimeType t )\fC [static]\fR"
Returns a list of all currently defined QMacMime objects of type \fIt\fR.
Returns the most-recently created QMacMime of type \fIt\fR that can convert between the \fImime\fR and \fIflav\fR formats. Returns 0 if no such convertor exists.
Returns the number of Mac flavors supported by this convertor.
.PP
All subclasses must reimplement this pure virtual function.
.SH "int QMacMime::flavor ( int index )\fC [pure virtual]\fR"
Returns the Mac flavor supported by this convertor that is ordinarily at position \fIindex\fR. This means that flavor(0) returns the first Mac flavor supported, and flavor(countFlavors()-1) returns the last. If \fIindex\fR is out of range the return value is undefined.
.PP
All subclasses must reimplement this pure virtual function.