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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<HTML>
<HEAD>
<TITLE>class MimeLinesBody</TITLE>
<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
<TABLE BORDER="0">
<TR><TD valign="top" align="left" cellspacing="10">
<h1>class MimeLinesBody</h1>
</TD>
<TD valign="top" align="right" colspan="1">MIME for multiple text lines. <small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH>Full name</TH><TD><code><A HREF="TelEngine.html">TelEngine</A>::MimeLinesBody</code></TD></TR>
<TR><TH>Definition</TH><TD><code>#include <<A HREF="yatemime_h.html">yatemime.h</A>></code></TD></TR>
<TR><TH>Inherits</TH><TD><i><A HREF="TelEngine__MimeBody.html">TelEngine::MimeBody</A></i> <small>[public ]</small></TD></TR>
<TR><TH><A HREF="full-list-TelEngine__MimeLinesBody.html">List of all Methods</A></TH></TR>
</TABLE>
</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">MimeLinesBody</A></b> (const String& type, const char* buf, int len)
</LI>
<LI> <b><A HREF="#ref2">MimeLinesBody</A></b> (const MimeHeaderLine& type, const char* buf, int len)
</LI>
<LI>virtual <b><A HREF="#ref3">~MimeLinesBody</A></b> ()
</LI>
<LI>virtual void* <b><A HREF="#ref4">getObject</A></b> (const String& name) const
</LI>
<LI>virtual MimeBody* <b><A HREF="#ref5">clone</A></b> () const
</LI>
<LI>inline const ObjList& <b><A HREF="#ref6">lines</A></b> () const
</LI>
<LI>inline void <b><A HREF="#ref7">addLine</A></b> (const char* line)
</LI>
</ul><h4>Protected Methods</h4><ul><LI> <b><A HREF="#ref8">MimeLinesBody</A></b> (const MimeLinesBody& original)
</LI>
<LI>virtual void <b><A HREF="#ref9">buildBody</A></b> () const
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
An object holding MIME data as separate text lines
</p>
<A NAME="MimeLinesBody"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>MimeLinesBody</strong> (const String& type, const char* buf, int len)
<br></td><td align="right"><h3><strong>MimeLinesBody</strong></h3></td></tr></table><p></p><p>
Constructor from block of data
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>type</i></TD><TD align="left" valign="top">The value of the Content-Type header line
</TD></TR>
<TR><TD align="left" valign="top"><i>buf</i></TD><TD align="left" valign="top">Pointer to buffer of data
</TD></TR>
<TR><TD align="left" valign="top"><i>len</i></TD><TD align="left" valign="top">Length of data in buffer
</TD></TR>
</TABLE></P>
<A NAME="MimeLinesBody"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>MimeLinesBody</strong> (const MimeHeaderLine& type, const char* buf, int len)
<br></td><td align="right"><h3><strong>MimeLinesBody</strong></h3></td></tr></table><p></p><p>
Constructor from block of data
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>type</i></TD><TD align="left" valign="top">The content type header line
</TD></TR>
<TR><TD align="left" valign="top"><i>buf</i></TD><TD align="left" valign="top">Pointer to buffer of data
</TD></TR>
<TR><TD align="left" valign="top"><i>len</i></TD><TD align="left" valign="top">Length of data in buffer
</TD></TR>
</TABLE></P>
<A NAME="~MimeLinesBody"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~MimeLinesBody</strong> ()
<br></td><td align="right"><h3><strong>~MimeLinesBody</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
Destructor
</p>
<A NAME="getObject"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void* <strong>getObject</strong> (const String& name)
<br></td><td align="right"><h3><strong>getObject</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>
RTTI method, get a pointer to a derived class given the class name
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of the class we are asking for
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: Pointer to the requested class or NULL if this object doesn't implement it
</p>
<p>Reimplemented from <A HREF="TelEngine__MimeBody.html#getObject">MimeBody</A>.</p>
<A NAME="clone"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> MimeBody* <strong>clone</strong> ()
<br></td><td align="right"><h3><strong>clone</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>
Duplicate this MIME body
</p>
<p><b>Returns</b>: Copy of this MIME body - a new MimeLinesBody
</p>
<p>Reimplemented from <A HREF="TelEngine__MimeBody.html#clone">MimeBody</A>.</p>
<A NAME="lines"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>inline const ObjList& <strong>lines</strong> ()
<br></td><td align="right"><h3><strong>lines</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
Retrieve the stored lines of text
</p>
<p><b>Returns</b>: List of Strings
</p>
<A NAME="addLine"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>inline void <strong>addLine</strong> (const char* line)
<br></td><td align="right"><h3><strong>addLine</strong></h3></td></tr></table><p></p><p>
Append a line of text to the data
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>line</i></TD><TD align="left" valign="top">Text to append
</TD></TR>
</TABLE></P>
<A NAME="MimeLinesBody"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>MimeLinesBody</strong> (const MimeLinesBody& original)
<br></td><td align="right"><h3><strong>MimeLinesBody</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>
Copy constructor
</p>
<A NAME="buildBody"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>buildBody</strong> ()
<br></td><td align="right"><h3><strong>buildBody</strong></h3></td></tr></table><p> <small>[protected const virtual]</small></p><p>
Override that is called internally to build the binary encoded body
</p>
<p>Reimplemented from <A HREF="TelEngine__MimeBody.html#buildBody">MimeBody</A>.</p>
<HR>
<table>
<tr><td><small>Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.</small></td></tr>
</table>
</BODY>
</HTML>
|