⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qmacmime.3qt

📁 Trolltech公司发布的基于C++图形开发环境
💻 3QT
字号:
'\" t.TH QMacMime 3qt "21 January 2005" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQMacMime \- Maps open-standard MIME to Mac flavors.SH SYNOPSIS\fC#include <qmime.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQMacMime\fR ( char t )".br.ti -1c.BI "virtual \fB~QMacMime\fR ()".br.ti -1c.BI "virtual const char * \fBconvertorName\fR () = 0".br.ti -1c.BI "virtual int \fBcountFlavors\fR () = 0".br.ti -1c.BI "virtual int \fBflavor\fR ( int index ) = 0".br.ti -1c.BI "virtual bool \fBcanConvert\fR ( const char * mime, int flav ) = 0".br.ti -1c.BI "virtual const char * \fBmimeFor\fR ( int flav ) = 0".br.ti -1c.BI "virtual int \fBflavorFor\fR ( const char * mime ) = 0".br.ti -1c.BI "virtual QByteArray \fBconvertToMime\fR ( QValueList<QByteArray> data, const char * mime, int flav ) = 0".br.ti -1c.BI "virtual QValueList<QByteArray> \fBconvertFromMime\fR ( QByteArray data, const char * mime, int flav ) = 0".br.in -1c.SS "Static Public Members".in +1c.ti -1c.BI "QPtrList<QMacMime> \fBall\fR ( QMacMimeType t )".br.ti -1c.BI "QMacMime * \fBconvertor\fR ( QMacMimeType t, const char * mime, int flav )".br.ti -1c.BI "const char * \fBflavorToMime\fR ( QMacMimeType t, int flav )".br.in -1c.SH DESCRIPTIONThe QMacMime class maps open-standard MIME to Mac flavors..PPQt'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..PPBy instantiating subclasses of QMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats..PPQt has predefined support for the following Mac flavors:.TPkScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag..TPkScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag..TPkScrapFlavorTypePicture - converted to "image/format", where format is a Qt image format, and supported by QImageDrag..TPkDragFlavorTypeHFS - converted to "text/uri-list", and supported by QUriDrag..PPYou can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime()..PPSee 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..SH "bool QMacMime::canConvert ( const char * mime, int flav )\fC [pure virtual]\fR"Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIflav\fR; otherwise returns FALSE..PPAll subclasses must reimplement this pure virtual function..SH "QValueList<QByteArray> QMacMime::convertFromMime ( QByteArray data, const char * mime, int flav )\fC [pure virtual]\fR"Returns \fIdata\fR converted from MIME type \fImime\fR to Mac flavor \fIflav\fR..PPNote that Mac flavors must all be self-terminating. The return value may contain trailing data..PPAll subclasses must reimplement this pure virtual function..SH "QByteArray QMacMime::convertToMime ( QValueList<QByteArray> data, const char * mime, int flav )\fC [pure virtual]\fR"Returns \fIdata\fR converted from Mac flavor \fIflav\fR to MIME type \fImime\fR..PPNote that Mac flavors must all be self-terminating. The input \fIdata\fR may contain trailing data..PPAll subclasses must reimplement this pure virtual function..SH "QMacMime * QMacMime::convertor ( QMacMimeType t, const char * mime, int flav )\fC [static]\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..SH "const char * QMacMime::convertorName ()\fC [pure virtual]\fR"Returns a name for the convertor..PPAll subclasses must reimplement this pure virtual function..SH "int QMacMime::countFlavors ()\fC [pure virtual]\fR"Returns the number of Mac flavors supported by this convertor..PPAll 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..PPAll subclasses must reimplement this pure virtual function..SH "int QMacMime::flavorFor ( const char * mime )\fC [pure virtual]\fR"Returns the Mac flavor used for MIME type \fImime\fR, or 0 if this convertor does not support \fImime\fR..PPAll subclasses must reimplement this pure virtual function..SH "const char * QMacMime::flavorToMime ( QMacMimeType t, int flav )\fC [static]\fR"Returns a MIME type of type \fIt\fR for \fIflav\fR, or 0 if none exists..SH "const char * QMacMime::mimeFor ( int flav )\fC [pure virtual]\fR"Returns the MIME type used for Mac flavor \fIflav\fR, or 0 if this convertor does not support \fIflav\fR..PPAll subclasses must reimplement this pure virtual function..SH "SEE ALSO".BR http://doc.trolltech.com/qmacmime.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qmacmime.3qt) and the Qtversion (3.3.4).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -