summaryrefslogtreecommitdiffstats
path: root/doc/html/qmailpassthroughcodec.html
blob: 924544afaf2429d747fa817908d8176fd69f0434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qmailcodec.cpp -->
<head>
  <title>QMailPassThroughCodec Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><img src="images/qtlogo.png" align="left" border="0" /></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
<td align="right" valign="top" width="230"><img src="images/codeless.png"  border="0" /></td></tr></table><h1 class="title">QMailPassThroughCodec Class Reference</h1>
<p>The QMailPassThroughCodec class uses the <a href="qmailcodec.html">QMailCodec</a> interface to move data between streams without coding or decoding. <a href="#details">More...</a></p>
<pre>    #include &lt;QMailPassThroughCodec&gt;</pre><p><b>This class is under development and is subject to change.</b></p>
<p>Inherits <a href="qmailcodec.html">QMailCodec</a>.</p>
<ul>
<li><a href="qmailpassthroughcodec-members.html">List of all members, including inherited members</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>9 public functions inherited from <a href="qmailcodec.html#public-functions">QMailCodec</a></li>
<li><div class="fn"></div>3 static public members inherited from <a href="qmailcodec.html#static-public-members">QMailCodec</a></li>
<li><div class="fn"></div>2 protected functions inherited from <a href="qmailcodec.html#protected-functions">QMailCodec</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QMailPassThroughCodec class uses the <a href="qmailcodec.html">QMailCodec</a> interface to move data between streams without coding or decoding.</p>
<p>The QMailPassThroughCodec allows client code to use the same <a href="qmailcodec.html">QMailCodec</a> interface to convert data between different ASCII encodings, or no encoding at all, without having to be aware of the details involved.</p>
<p>The pass-through codec is primarily useful when communicating with SMTP servers supporting the <a href="http://www.ietf.org/rfc/rfc1652.txt">RFC 1652</a> (8BITMIME) extension, which permits the exchange of data without coding via 7-bit ASCII.</p>
<p>A QMailPassThroughCodec can be instantiated directly, but is more likely to be used polymorphically:</p>
<pre><span class="comment">    // Get an object to perform the encoding required for the current server</span>
    QMailCodec* encoder = getCodecForServer(currentServer());

<span class="comment">    // If the codec returned is a QMailPassThroughCodec, the input data will</span>
<span class="comment">    // be written to the output stream without encoding to 7-bit ASCII</span>
    encoder-&gt;encode(outputStream, inputStream);</pre>
<p>See also <a href="qmailcodec.html">QMailCodec</a>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2010 QtSoftware</td>
<td align="right"><div align="right">Messaging Framework</div></td>
</tr></table></div></address></body>
</html>