42 <hr /><hr /> |
42 <hr /><hr /> |
43 <a NAME="Connection" ID="Connection"></a> |
43 <a NAME="Connection" ID="Connection"></a> |
44 <h2>Connection</h2> |
44 <h2>Connection</h2> |
45 <p> |
45 <p> |
46 Class representing a peer connection. |
46 Class representing a peer connection. |
47 </p><h4>Signals</h4> |
47 </p><h3>Signals</h3> |
48 <dl> |
48 <dl> |
49 <dt>getParticipants()</dt> |
49 <dt>getParticipants()</dt> |
50 <dd> |
50 <dd> |
51 emitted after a get participants message has arrived |
51 emitted after a get participants message has arrived |
52 </dd><dt>newMessage(user, message)</dt> |
52 </dd><dt>newMessage(user, message)</dt> |
66 QTcpSocket |
66 QTcpSocket |
67 <h3>Class Attributes</h3> |
67 <h3>Class Attributes</h3> |
68 <table> |
68 <table> |
69 <tr><td>Editor</td></tr><tr><td>GetParticipants</td></tr><tr><td>Greeting</td></tr><tr><td>Participants</td></tr><tr><td>Ping</td></tr><tr><td>PlainText</td></tr><tr><td>Pong</td></tr><tr><td>ProtocolEditor</td></tr><tr><td>ProtocolGetParticipants</td></tr><tr><td>ProtocolGreeting</td></tr><tr><td>ProtocolMessage</td></tr><tr><td>ProtocolParticipants</td></tr><tr><td>ProtocolPing</td></tr><tr><td>ProtocolPong</td></tr><tr><td>ReadingGreeting</td></tr><tr><td>ReadyForUse</td></tr><tr><td>Undefined</td></tr><tr><td>WaitingForGreeting</td></tr> |
69 <tr><td>Editor</td></tr><tr><td>GetParticipants</td></tr><tr><td>Greeting</td></tr><tr><td>Participants</td></tr><tr><td>Ping</td></tr><tr><td>PlainText</td></tr><tr><td>Pong</td></tr><tr><td>ProtocolEditor</td></tr><tr><td>ProtocolGetParticipants</td></tr><tr><td>ProtocolGreeting</td></tr><tr><td>ProtocolMessage</td></tr><tr><td>ProtocolParticipants</td></tr><tr><td>ProtocolPing</td></tr><tr><td>ProtocolPong</td></tr><tr><td>ReadingGreeting</td></tr><tr><td>ReadyForUse</td></tr><tr><td>Undefined</td></tr><tr><td>WaitingForGreeting</td></tr> |
70 </table> |
70 </table> |
|
71 <h3>Class Methods</h3> |
|
72 <table> |
|
73 <tr><td>None</td></tr> |
|
74 </table> |
71 <h3>Methods</h3> |
75 <h3>Methods</h3> |
72 <table> |
76 <table> |
73 <tr> |
77 <tr> |
74 <td><a href="#Connection.__init__">Connection</a></td> |
78 <td><a href="#Connection.__init__">Connection</a></td> |
75 <td>Constructor</td> |
79 <td>Constructor</td> |
123 <td>Public method to set the greeting message.</td> |
127 <td>Public method to set the greeting message.</td> |
124 </tr><tr> |
128 </tr><tr> |
125 <td><a href="#Connection.timerEvent">timerEvent</a></td> |
129 <td><a href="#Connection.timerEvent">timerEvent</a></td> |
126 <td>Protected method to handle timer events.</td> |
130 <td>Protected method to handle timer events.</td> |
127 </tr> |
131 </tr> |
|
132 </table> |
|
133 <h3>Static Methods</h3> |
|
134 <table> |
|
135 <tr><td>None</td></tr> |
128 </table> |
136 </table> |
129 <a NAME="Connection.__init__" ID="Connection.__init__"></a> |
137 <a NAME="Connection.__init__" ID="Connection.__init__"></a> |
130 <h4>Connection (Constructor)</h4> |
138 <h4>Connection (Constructor)</h4> |
131 <b>Connection</b>(<i>parent = None</i>) |
139 <b>Connection</b>(<i>parent = None</i>) |
132 <p> |
140 <p> |