1QMimeSource(3qt)                                              QMimeSource(3qt)
2
3
4

NAME

6       QMimeSource - Abstraction of objects which provide formatted data of a
7       certain MIME type
8

SYNOPSIS

10       #include <qmime.h>
11
12       Inherited by QDragObject and QDropEvent.
13
14   Public Members
15       QMimeSource ()
16       virtual ~QMimeSource ()
17       virtual const char * format ( int i = 0 ) const = 0
18       virtual bool provides ( const char * mimeType ) const
19       virtual QByteArray encodedData ( const char * ) const = 0
20       int serialNumber () const
21

DESCRIPTION

23       The QMimeSource class is an abstraction of objects which provide
24       formatted data of a certain MIME type.
25
26       Drag-and-drop and clipboard use this abstraction.
27
28       See also IANA list of MIME media types, Drag And Drop Classes,
29       Input/Output and Networking, and Miscellaneous Classes.
30

MEMBER FUNCTION DOCUMENTATION

QMimeSource::QMimeSource ()

33       Constructs a mime source and assigns a globally unique serial number to
34       it.
35
36       See also serialNumber().
37

QMimeSource::~QMimeSource () [virtual]

39       Provided to ensure that subclasses destroy themselves correctly.
40

QByteArray QMimeSource::encodedData ( const char * ) const [pure virtual]

42       Returns the encoded data of this object in the specified MIME format.
43
44       Subclasses must reimplement this function.
45
46       Reimplemented in QStoredDrag, QDropEvent, and QIconDrag.
47

const char * QMimeSource::format ( int i = 0 ) const [pure virtual]

49       Returns the i-th supported MIME format, or 0.
50
51       Reimplemented in QDropEvent.
52

bool QMimeSource::provides ( const char * mimeType ) const [virtual]

54       Returns TRUE if the object can provide the data in format mimeType;
55       otherwise returns FALSE.
56
57       If you inherit from QMimeSource, for consistency reasons it is better
58       to implement the more abstract canDecode() functions such as
59       QTextDrag::canDecode() and QImageDrag::canDecode().
60
61       Example: iconview/simple_dd/main.cpp.
62
63       Reimplemented in QDropEvent.
64

int QMimeSource::serialNumber () const

66       Returns the mime source's globally unique serial number.
67
68

SEE ALSO

70       http://doc.trolltech.com/qmimesource.html
71       http://www.trolltech.com/faq/tech.html
72
74       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
75       license file included in the distribution for a complete license
76       statement.
77

AUTHOR

79       Generated automatically from the source code.
80

BUGS

82       If you find a bug in Qt, please report it as described in
83       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
84       help you. Thank you.
85
86       The definitive Qt documentation is provided in HTML format; it is
87       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
88       web browser. This man page is provided as a convenience for those users
89       who prefer man pages, although this format is not officially supported
90       by Trolltech.
91
92       If you find errors in this manual page, please report them to qt-
93       bugs@trolltech.com.  Please include the name of the manual page
94       (qmimesource.3qt) and the Qt version (3.3.8).
95
96
97
98Trolltech AS                    2 February 2007               QMimeSource(3qt)
Impressum