<?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"> <!-- /builddir/build/BUILD/libqxt-libqxt-v0.6.2/src/core/qxtlinesocket.cpp --> <head> <title>QxtLineSocket Class Reference</title> <link href="stylesheet.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"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="classes.html"><font color="#004faf">Classes</font></a> · <a href="namespaces.html"><font color="#004faf">Namespaces</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtLineSocket Class Reference<br /><span class="small-subtitle">[<a href="qxtcore.html">QxtCore</a> module]</span> </h1> <p>The QxtLineSocket class acts on a <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> as baseclass for line-based protocols <a href="#details">More...</a></p> <pre> #include <QxtLineSocket></pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a>.</p> <ul> <li><a href="qxtlinesocket-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h3>Public Functions</h3> <ul> <li><div class="fn"></div><b><a href="qxtlinesocket.html#QxtLineSocket">QxtLineSocket</a></b> ( QObject * <i>parent</i> = 0 )</li> <li><div class="fn"></div><b><a href="qxtlinesocket.html#QxtLineSocket-2">QxtLineSocket</a></b> ( QIODevice * <i>socket</i>, QObject * <i>parent</i> = 0 )</li> <li><div class="fn"></div>void <b><a href="qxtlinesocket.html#setSocket">setSocket</a></b> ( QIODevice * <i>socket</i> )</li> <li><div class="fn"></div>QIODevice * <b><a href="qxtlinesocket.html#socket">socket</a></b> () const</li> </ul> <ul> <li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li> </ul> <a name="public-slots"></a> <h3>Public Slots</h3> <ul> <li><div class="fn"></div>void <b><a href="qxtlinesocket.html#sendLine">sendLine</a></b> ( const QByteArray & <i>line</i> )</li> </ul> <ul> <li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li> </ul> <a name="signals"></a> <h3>Signals</h3> <ul> <li><div class="fn"></div>void <b><a href="qxtlinesocket.html#newLineReceived">newLineReceived</a></b> ( const QByteArray & <i>line</i> )</li> </ul> <ul> <li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li> </ul> <a name="protected-functions"></a> <h3>Protected Functions</h3> <ul> <li><div class="fn"></div>virtual void <b><a href="qxtlinesocket.html#newLine">newLine</a></b> ( const QByteArray & <i>line</i> )</li> </ul> <ul> <li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li> <li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li> <li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li> <li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QxtLineSocket class acts on a <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> as baseclass for line-based protocols</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="QxtLineSocket"></a>QxtLineSocket::QxtLineSocket ( <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3> <p>Constructs a new <a href="qxtlinesocket.html">QxtLineSocket</a> with <i>parent</i>.</p> <h3 class="fn"><a name="QxtLineSocket-2"></a>QxtLineSocket::QxtLineSocket ( <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> * <i>socket</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3> <p>Constructs a new <a href="qxtlinesocket.html">QxtLineSocket</a> with <i>socket</i> and <i>parent</i>.</p> <h3 class="fn"><a name="newLine"></a>void QxtLineSocket::newLine ( const <a href="http://doc.qtsoftware.com/4.5/qbytearray.html">QByteArray</a> & <i>line</i> ) <tt> [virtual protected]</tt></h3> <p>This virtual function is called by <a href="qxtlinesocket.html">QxtLineSocket</a> whenever a <i>line</i> was received. Reimplement this function when creating a subclass of <a href="qxtlinesocket.html">QxtLineSocket</a>.</p> <p><font color="red"><b><code>\note</code></b></font>The default implementation does nothing.</p> <h3 class="fn"><a name="newLineReceived"></a>void QxtLineSocket::newLineReceived ( const <a href="http://doc.qtsoftware.com/4.5/qbytearray.html">QByteArray</a> & <i>line</i> ) <tt> [signal]</tt></h3> <p>This signal is emitted whenever a new <i>line</i> is received.</p> <h3 class="fn"><a name="sendLine"></a>void QxtLineSocket::sendLine ( const <a href="http://doc.qtsoftware.com/4.5/qbytearray.html">QByteArray</a> & <i>line</i> ) <tt> [slot]</tt></h3> <p>Sends a <i>line</i>.</p> <h3 class="fn"><a name="setSocket"></a>void QxtLineSocket::setSocket ( <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> * <i>socket</i> )</h3> <p>Sets the <i>socket</i>.</p> <p>See also <a href="qxtlinesocket.html#socket">socket</a>().</p> <h3 class="fn"><a name="socket"></a><a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> * QxtLineSocket::socket () const</h3> <p>Returns the socket.</p> <p>See also <a href="qxtlinesocket.html#setSocket">setSocket</a>().</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td align="left">Copyright © 2007-2011 <a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td> <td align="right"><div align="right"> <a href="http://libqxt.org">Qxt</a> 0.6.2</div></td> </tr></table></div></address></body> </html>