source: trunk/doc/html/qmimesource.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qmime.cpp:49 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QMimeSource Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMimeSource Class Reference</h1>
33
34<p>The QMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qmime-h.html">qmime.h</a>&gt;</tt>
37<p>Inherited by <a href="qdragobject.html">QDragObject</a> and <a href="qdropevent.html">QDropEvent</a>.
38<p><a href="qmimesource-members.html">List of all member functions.</a>
39<h2>Public Members</h2>
40<ul>
41<li class=fn><a href="#QMimeSource"><b>QMimeSource</b></a> ()</li>
42<li class=fn>virtual <a href="#~QMimeSource"><b>~QMimeSource</b></a> ()</li>
43<li class=fn>virtual const char * <a href="#format"><b>format</b></a> ( int&nbsp;i = 0 ) const = 0</li>
44<li class=fn>virtual bool <a href="#provides"><b>provides</b></a> ( const&nbsp;char&nbsp;*&nbsp;mimeType ) const</li>
45<li class=fn>virtual QByteArray <a href="#encodedData"><b>encodedData</b></a> ( const char * ) const = 0</li>
46<li class=fn>int <a href="#serialNumber"><b>serialNumber</b></a> () const</li>
47</ul>
48<hr><a name="details"></a><h2>Detailed Description</h2>
49
50
51The QMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type.
52<p>
53
54
55<p> <a href="dnd.html">Drag-and-drop</a> and
56<a href="qclipboard.html">clipboard</a> use this abstraction.
57<p> <p>See also <a href="http://www.isi.edu/in-notes/iana/assignments/media-types/
58 ">IANA list of MIME media types</a>, <a href="draganddrop.html">Drag And Drop Classes</a>, <a href="io.html">Input/Output and Networking</a>, and <a href="misc.html">Miscellaneous Classes</a>.
59
60<hr><h2>Member Function Documentation</h2>
61<h3 class=fn><a name="QMimeSource"></a>QMimeSource::QMimeSource ()
62</h3>
63Constructs a mime source and assigns a globally unique serial
64number to it.
65<p> <p>See also <a href="#serialNumber">serialNumber</a>().
66
67<h3 class=fn><a name="~QMimeSource"></a>QMimeSource::~QMimeSource ()<tt> [virtual]</tt>
68</h3>
69Provided to ensure that subclasses destroy themselves correctly.
70
71<h3 class=fn><a href="qbytearray.html">QByteArray</a> <a name="encodedData"></a>QMimeSource::encodedData ( const char * ) const<tt> [pure virtual]</tt>
72</h3>
73
74<p> Returns the encoded data of this object in the specified MIME
75format.
76<p> Subclasses must reimplement this function.
77
78<p>Reimplemented in <a href="qstoreddrag.html#encodedData">QStoredDrag</a>, <a href="qdropevent.html#encodedData">QDropEvent</a>, and <a href="qicondrag.html#encodedData">QIconDrag</a>.
79<h3 class=fn>const char * <a name="format"></a>QMimeSource::format ( int&nbsp;i = 0 ) const<tt> [pure virtual]</tt>
80</h3>
81
82<p> Returns the <em>i</em>-th supported MIME format, or 0.
83
84<p>Reimplemented in <a href="qdropevent.html#format">QDropEvent</a>.
85<h3 class=fn>bool <a name="provides"></a>QMimeSource::provides ( const&nbsp;char&nbsp;*&nbsp;mimeType ) const<tt> [virtual]</tt>
86</h3>
87Returns TRUE if the object can provide the data in format <em>mimeType</em>; otherwise returns FALSE.
88<p> If you inherit from QMimeSource, for consistency reasons it is
89better to implement the more abstract canDecode() functions such
90as <a href="qtextdrag.html#canDecode">QTextDrag::canDecode</a>() and <a href="qimagedrag.html#canDecode">QImageDrag::canDecode</a>().
91
92<p>Example: <a href="simple_dd-example.html#x2825">iconview/simple_dd/main.cpp</a>.
93<p>Reimplemented in <a href="qdropevent.html#provides">QDropEvent</a>.
94<h3 class=fn>int <a name="serialNumber"></a>QMimeSource::serialNumber () const
95</h3>
96
97<p> Returns the mime source's globally unique serial number.
98
99<!-- eof -->
100<hr><p>
101This file is part of the <a href="index.html">Qt toolkit</a>.
102Copyright &copy; 1995-2007
103<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
104<table width=100% cellspacing=0 border=0><tr>
105<td>Copyright &copy; 2007
106<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
107<td align=right><div align=right>Qt 3.3.8</div>
108</table></div></address></body>
109</html>
Note: See TracBrowser for help on using the repository browser.