Qt 4.8
|
The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. More...
#include <qmime.h>
Public Functions | |
virtual QByteArray | encodedData (const char *) const =0 |
Returns the encoded data of this object in the specified MIME format. More... | |
virtual const char * | format (int n=0) const =0 |
Returns the (i - 1)-th supported MIME format, or 0. More... | |
virtual bool | provides (const char *) const |
Returns true if the object can provide the data in format mimeType; otherwise returns false. More... | |
virtual | ~QMimeSource () |
Destroys the MIME source. More... | |
The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type.
The preferred approach to drag and drop is to use QDrag in conjunction with QMimeData. See Drag and Drop for details.
|
virtual |
|
pure virtual |
Returns the encoded data of this object in the specified MIME format.
Implemented in QDropEvent, and QMimeDataWrapper.
Referenced by QMimeSourceWrapper::retrieveData().
|
pure virtual |
Returns the (i - 1)-th supported MIME format, or 0.
Implemented in QDropEvent, and QMimeDataWrapper.
Referenced by QMimeSourceWrapper::formats(), and provides().
|
virtual |
Returns true if the object can provide the data in format mimeType; otherwise returns false.
If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and QImageDrag::canDecode().
Reimplemented in QDropEvent.
Definition at line 90 of file qmime.cpp.
Referenced by QMimeSourceWrapper::hasFormat().