~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qmimesource.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/gui/kernel/qmime.cpp -->
 
5
<!-- qmime.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QMimeSource Class Reference</title>
 
7
  <title>Qt 4.6: QMimeSource Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//QMimeSource" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QMimeSource Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">QMimeSource Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
16
17
</h1>
17
18
<p>The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;QMimeSource&gt;</pre><p><b>This class is obsolete.</b> It is provided to keep old source code working. We strongly advise against using it in new code.</p>
20
21
<ul>
21
22
<li><a href="qmimesource-members.html">List of all members, including inherited members</a></li>
22
23
</ul>
 
24
<hr />
23
25
<a name="public-functions"></a>
24
 
<h3>Public Functions</h3>
25
 
<ul>
26
 
<li><div class="fn"></div>virtual <b><a href="qmimesource.html#dtor.QMimeSource">~QMimeSource</a></b> ()</li>
27
 
<li><div class="fn"></div>virtual QByteArray <b><a href="qmimesource.html#encodedData">encodedData</a></b> ( const char * <i>format</i> ) const = 0</li>
28
 
<li><div class="fn"></div>virtual const char * <b><a href="qmimesource.html#format">format</a></b> ( int <i>i</i> = 0 ) const = 0</li>
29
 
<li><div class="fn"></div>virtual bool <b><a href="qmimesource.html#provides">provides</a></b> ( const char * <i>mimeType</i> ) const</li>
30
 
</ul>
 
26
<h2>Public Functions</h2>
 
27
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
28
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><b><a href="qmimesource.html#dtor.QMimeSource">~QMimeSource</a></b> ()</td></tr>
 
29
<tr><td class="memItemLeft" align="right" valign="top">virtual QByteArray </td><td class="memItemRight" valign="bottom"><b><a href="qmimesource.html#encodedData">encodedData</a></b> ( const char * <i>format</i> ) const = 0</td></tr>
 
30
<tr><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><b><a href="qmimesource.html#format">format</a></b> ( int <i>i</i> = 0 ) const = 0</td></tr>
 
31
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qmimesource.html#provides">provides</a></b> ( const char * <i>mimeType</i> ) const</td></tr>
 
32
</table>
31
33
<a name="details"></a>
32
34
<hr />
33
35
<h2>Detailed Description</h2>
36
38
<p>See also <a href="qmimedata.html">QMimeData</a> and <a href="qdrag.html">QDrag</a>.</p>
37
39
<hr />
38
40
<h2>Member Function Documentation</h2>
 
41
<a name="//apple_ref/cpp/instm/QMimeSource/~QMimeSource" />
39
42
<h3 class="fn"><a name="dtor.QMimeSource"></a>QMimeSource::~QMimeSource ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
40
43
<p>Destroys the MIME source.</p>
 
44
<a name="//apple_ref/cpp/instm/QMimeSource/encodedData" />
41
45
<h3 class="fn"><a name="encodedData"></a><a href="qbytearray.html">QByteArray</a> QMimeSource::encodedData ( const char * <i>format</i> ) const&nbsp;&nbsp;<tt> [pure virtual]</tt></h3>
42
46
<p>Returns the encoded data of this object in the specified MIME <i>format</i>.</p>
 
47
<a name="//apple_ref/cpp/instm/QMimeSource/format" />
43
48
<h3 class="fn"><a name="format"></a>const char * QMimeSource::format ( int <i>i</i> = 0 ) const&nbsp;&nbsp;<tt> [pure virtual]</tt></h3>
44
49
<p>Returns the (<i>i</i> - 1)-th supported MIME format, or 0.</p>
 
50
<a name="//apple_ref/cpp/instm/QMimeSource/provides" />
45
51
<h3 class="fn"><a name="provides"></a>bool QMimeSource::provides ( const char * <i>mimeType</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
46
52
<p>Returns true if the object can provide the data in format <i>mimeType</i>; otherwise returns false.</p>
47
 
<p>If you inherit from <a href="qmimesource.html">QMimeSource</a>, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and QImageDrag::canDecode().</p>
 
53
<p>If you inherit from <a href="qmimesource.html" class="obsolete">QMimeSource</a>, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and QImageDrag::canDecode().</p>
48
54
<p /><address><hr /><div align="center">
49
55
<table width="100%" cellspacing="0" border="0"><tr class="address">
50
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
51
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
52
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
53
 
</tr></table></div></address></body>
 
56
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
57
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
58
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
59
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
54
60
</html>