#include </home/clem/local/src/opie/noncore/comm/keypebble/krfbconnection.h>
Collaboration diagram for KRFBConnection:

Public Types | |
| enum | State { Connecting, LoggingIn, Connected, Disconnecting, Disconnected, Error } |
Signals | |
| void | statusChanged (const QString &) |
| void | passwordRequired (KRFBConnection *) |
| void | connected () |
| void | loggedIn () |
| void | disconnected () |
| void | error (const QString &msg) |
| void | gotEnoughData () |
Public Member Functions | |
| KRFBConnection (QObject *parent=0) | |
| ~KRFBConnection () | |
| State | state () const |
| KRFBServer * | options () const |
| KRFBBuffer * | buffer () const |
| KRFBDecoder * | decoder () const |
| void | setPortBase (int base) |
| int | portBase () const |
| void | connectTo (KRFBServer) |
| void | disconnect () |
| const QCString | host () const |
| int | display () const |
| const QUrl & | url () |
| void | refresh () |
| void | sendCutText (const QString &) |
Protected Slots | |
| void | gotSocketError (int) |
| void | gotSocketConnection () |
| void | gotRFBConnection () |
| void | gotMoreData () |
| void | updateTimer () |
| void | disconnectDone () |
Private Member Functions | |
| void | waitForData (unsigned int) |
| int | read (void *buf, int sz) |
| int | write (void *buf, int sz) |
Private Attributes | |
| int | portBase_ |
| QSocket * | sock |
| State | currentState_ |
| unsigned int | minData_ |
| QTimer * | updater |
| KRFBLogin * | login |
| KRFBDecoder * | decoder_ |
| KRFBServer * | options_ |
| KRFBBuffer * | buffer_ |
| QUrl | url_ |
Friends | |
| class | KRFBLogin |
| class | KRFBDecoder |
Definition at line 24 of file krfbconnection.h.
|
|
Definition at line 33 of file krfbconnection.h. |
|
|
Definition at line 18 of file krfbconnection.cpp. References buffer_, currentState_, decoder_, Disconnected, minData_, options_, portBase_, sock, and updater. |
|
|
Definition at line 31 of file krfbconnection.cpp. References currentState_, disconnectDone(), Disconnected, Disconnecting, options_, and sock. |
|
|
Definition at line 51 of file krfbconnection.h. References buffer_. Referenced by KRFBCanvas::contentsMouseMoveEvent(), KRFBCanvas::contentsMousePressEvent(), KRFBCanvas::contentsMouseReleaseEvent(), KRFBCanvas::keyPressEvent(), KRFBCanvas::keyReleaseEvent(), KRFBCanvas::loggedIn(), KRFBCanvas::sendCtlAltDel(), and KRFBCanvas::viewportPaintEvent(). |
|
|
Referenced by connectTo(), and gotRFBConnection(). |
|
|
Definition at line 39 of file krfbconnection.cpp. References connected(), Connecting, currentState_, disconnect(), Disconnected, KRFBServer::display, error(), gotSocketConnection(), gotSocketError(), KRFBServer::hostname, QString::latin1(), oendl, options_, owarn, portBase_, and sock. Referenced by KRFBCanvas::openConnection(). |
|
|
Definition at line 53 of file krfbconnection.h. References decoder_. |
|
|
Definition at line 59 of file krfbconnection.cpp. References currentState_, disconnectDone(), Disconnected, Disconnecting, oendl, owarn, and sock. Referenced by KRFBCanvas::closeConnection(), and connectTo(). |
|
|
Definition at line 76 of file krfbconnection.cpp. References buffer_, currentState_, decoder_, disconnected(), Disconnected, minData_, sock, and updater. Referenced by disconnect(), and ~KRFBConnection(). |
|
|
Referenced by disconnectDone(). |
|
|
Definition at line 71 of file krfbconnection.h. References KRFBServer::display, and options_. Referenced by url(). |
|
|
Referenced by connectTo(), and gotSocketError(). |
|
|
Referenced by gotMoreData(), and waitForData(). |
|
|
Definition at line 164 of file krfbconnection.cpp. References assert, gotEnoughData(), minData_, and sock. Referenced by gotSocketError(), and waitForData(). |
|
|
Definition at line 101 of file krfbconnection.cpp. References buffer_, connected(), Connected, currentState_, decoder_, KRFBDecoder, loggedIn(), oendl, options_, owarn, KRFBDecoder::setBuffer(), statusChanged(), updater, KRFBServer::updateRate, and updateTimer(). Referenced by KRFBLogin::gotAuthResult(). |
|
|
Definition at line 88 of file krfbconnection.cpp. References currentState_, KRFBLogin, LoggingIn, login, oendl, owarn, statusChanged(), and tr. Referenced by connectTo(). |
|
|
Definition at line 127 of file krfbconnection.cpp. References currentState_, Disconnected, error(), Error, gotMoreData(), host(), oendl, owarn, read(), sock, and tr. Referenced by connectTo(). |
|
|
Definition at line 68 of file krfbconnection.h. References KRFBServer::hostname, QString::latin1(), and options_. Referenced by gotSocketError(), and url(). |
|
|
Referenced by gotRFBConnection(). |
|
|
Definition at line 49 of file krfbconnection.h. References options_. Referenced by KRFBCanvas::bell(), KRFBDecoder::decidePixelFormat(), KRFBBuffer::drawRawRectChunk(), KRFBDecoder::gotServerInit(), KRFBDecoder::sendAllowedEncodings(), KRFBDecoder::sendClientInit(), and KRFBDecoder::sendMouseEvent(). |
|
|
Emitted when we *really* need a password. If the password was specified before you tried to connect then you won't see this. |
|
|
Definition at line 212 of file krfbconnection.cpp. References portBase_. |
|
||||||||||||
|
|
Definition at line 222 of file krfbconnection.cpp. References decoder_, and KRFBDecoder::sendUpdateRequest(). Referenced by KRFBCanvas::refresh(). |
|
|
Definition at line 227 of file krfbconnection.cpp. References decoder_, and KRFBDecoder::sendCutEvent(). Referenced by KRFBCanvas::clipboardChanged(). |
|
|
Definition at line 207 of file krfbconnection.cpp. References portBase_. |
|
|
Definition at line 202 of file krfbconnection.cpp. References currentState_. Referenced by KRFBDecoder::KRFBDecoder(). |
|
|
Referenced by gotRFBConnection(), and gotSocketConnection(). |
|
|
Definition at line 217 of file krfbconnection.cpp. References decoder_, and KRFBDecoder::sendUpdateRequest(). Referenced by gotRFBConnection(). |
|
|
Definition at line 232 of file krfbconnection.cpp. |
|
|
Definition at line 175 of file krfbconnection.cpp. References assert, currentState_, Error, gotEnoughData(), gotMoreData(), minData_, and sock. Referenced by KRFBDecoder::getRawRectChunk(), KRFBDecoder::gotServerCut(), KRFBDecoder::gotServerCutLength(), KRFBDecoder::gotServerInit(), KRFBLogin::gotServerVersion(), KRFBDecoder::gotUpdateHeader(), KRFBDecoder::handleCopyRect(), KRFBLogin::KRFBLogin(), KRFBDecoder::sendClientInit(), and KRFBDecoder::sendUpdateRequest(). |
|
||||||||||||
|
|
Definition at line 30 of file krfbconnection.h. Referenced by gotRFBConnection(). |
|
|
Definition at line 26 of file krfbconnection.h. Referenced by gotSocketConnection(). |
|
|
Definition at line 142 of file krfbconnection.h. Referenced by buffer(), disconnectDone(), gotRFBConnection(), and KRFBConnection(). |
|
|
Definition at line 136 of file krfbconnection.h. Referenced by connectTo(), disconnect(), disconnectDone(), gotRFBConnection(), gotSocketConnection(), gotSocketError(), KRFBConnection(), state(), waitForData(), and ~KRFBConnection(). |
|
|
Definition at line 140 of file krfbconnection.h. Referenced by decoder(), disconnectDone(), gotRFBConnection(), KRFBConnection(), refresh(), sendCutText(), and updateTimer(). |
|
|
Definition at line 139 of file krfbconnection.h. Referenced by gotSocketConnection(). |
|
|
Definition at line 137 of file krfbconnection.h. Referenced by disconnectDone(), gotMoreData(), KRFBConnection(), and waitForData(). |
|
|
Definition at line 141 of file krfbconnection.h. Referenced by connectTo(), display(), KRFBLogin::getPassword(), gotRFBConnection(), host(), KRFBConnection(), options(), and ~KRFBConnection(). |
|
|
Definition at line 134 of file krfbconnection.h. Referenced by connectTo(), KRFBConnection(), portBase(), and setPortBase(). |
|
|
Definition at line 135 of file krfbconnection.h. Referenced by connectTo(), disconnect(), disconnectDone(), gotMoreData(), gotSocketError(), KRFBConnection(), read(), waitForData(), write(), and ~KRFBConnection(). |
|
|
Definition at line 138 of file krfbconnection.h. Referenced by disconnectDone(), gotRFBConnection(), and KRFBConnection(). |
|
|
Definition at line 143 of file krfbconnection.h. Referenced by url(). |
1.4.2