source: trunk/doc/html/qstoreddrag.html@ 203

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

reference documentation added

File size: 4.6 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/qdragobject.cpp:1202 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QStoredDrag 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>QStoredDrag Class Reference</h1>
33
34<p>The QStoredDrag class provides a simple stored-value drag object for arbitrary MIME data.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qdragobject-h.html">qdragobject.h</a>&gt;</tt>
37<p>Inherits <a href="qdragobject.html">QDragObject</a>.
38<p>Inherited by <a href="quridrag.html">QUriDrag</a> and <a href="qcolordrag.html">QColorDrag</a>.
39<p><a href="qstoreddrag-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QStoredDrag"><b>QStoredDrag</b></a> ( const&nbsp;char&nbsp;*&nbsp;mimeType, QWidget&nbsp;*&nbsp;dragSource = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )</li>
43<li class=fn><a href="#~QStoredDrag"><b>~QStoredDrag</b></a> ()</li>
44<li class=fn>virtual void <a href="#setEncodedData"><b>setEncodedData</b></a> ( const&nbsp;QByteArray&nbsp;&amp;&nbsp;encodedData )</li>
45<li class=fn>virtual QByteArray <a href="#encodedData"><b>encodedData</b></a> ( const&nbsp;char&nbsp;*&nbsp;m ) const</li>
46</ul>
47<hr><a name="details"></a><h2>Detailed Description</h2>
48
49
50The QStoredDrag class provides a simple stored-value drag object for arbitrary MIME data.
51<p>
52<p> When a block of data has only one representation, you can use a
53QStoredDrag to hold it.
54<p> For more information about drag and drop, see the <a href="qdragobject.html">QDragObject</a>
55class and the <a href="dnd.html">drag and drop documentation</a>.
56<p>See also <a href="draganddrop.html">Drag And Drop Classes</a>.
57
58<hr><h2>Member Function Documentation</h2>
59<h3 class=fn><a name="QStoredDrag"></a>QStoredDrag::QStoredDrag ( const&nbsp;char&nbsp;*&nbsp;mimeType, <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;dragSource = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )
60</h3>
61Constructs a QStoredDrag. The <em>dragSource</em> and <em>name</em> are passed
62to the <a href="qdragobject.html">QDragObject</a> constructor, and the format is set to <em>mimeType</em>.
63<p> The data will be unset. Use <a href="#setEncodedData">setEncodedData</a>() to set it.
64
65<h3 class=fn><a name="~QStoredDrag"></a>QStoredDrag::~QStoredDrag ()
66</h3>
67Destroys the drag object and frees up all allocated resources.
68
69<h3 class=fn><a href="qbytearray.html">QByteArray</a> <a name="encodedData"></a>QStoredDrag::encodedData ( const&nbsp;char&nbsp;*&nbsp;m ) const<tt> [virtual]</tt>
70</h3>
71Returns the stored data. <em>m</em> contains the data's format.
72<p> <p>See also <a href="#setEncodedData">setEncodedData</a>().
73
74<p>Reimplemented from <a href="qmimesource.html#encodedData">QMimeSource</a>.
75<h3 class=fn>void <a name="setEncodedData"></a>QStoredDrag::setEncodedData ( const&nbsp;<a href="qbytearray.html">QByteArray</a>&nbsp;&amp;&nbsp;encodedData )<tt> [virtual]</tt>
76</h3>
77Sets the encoded data of this drag object to <em>encodedData</em>. The
78encoded data is what's delivered to the drop sites. It must be in
79a strictly defined and portable format.
80<p> The drag object can't be dropped (by the user) until this function
81has been called.
82
83<!-- eof -->
84<hr><p>
85This file is part of the <a href="index.html">Qt toolkit</a>.
86Copyright &copy; 1995-2007
87<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
88<table width=100% cellspacing=0 border=0><tr>
89<td>Copyright &copy; 2007
90<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
91<td align=right><div align=right>Qt 3.3.8</div>
92</table></div></address></body>
93</html>
Note: See TracBrowser for help on using the repository browser.