KIO::Connection Class Reference
This class provides a simple means for IPC between two applications via a pipe. More...
#include <connection.h>
Inheritance diagram for KIO::Connection:


| Public Member Functions | |
| Connection () | |
| void | init (KSocket *sock) | 
| void | init (int fd_in, int fd_out) | 
| void | connect (QObject *receiver=0, const char *member=0) | 
| void | close () | 
| int | fd_from () const | 
| int | fd_to () const | 
| bool | inited () const | 
| void | send (int cmd, const QByteArray &arr=QByteArray()) | 
| bool | sendnow (int _cmd, const QByteArray &data) | 
| int | read (int *_cmd, QByteArray &data) | 
| void | suspend () | 
| void | resume () | 
| bool | suspended () const | 
| Protected Slots | |
| void | dequeue () | 
Detailed Description
This class provides a simple means for IPC between two applications via a pipe.It handles a queue of commands to be sent which makes it possible to queue data before an actual connection has been established.
Definition at line 47 of file connection.h.
Constructor & Destructor Documentation
| 
 | 
| Creates a new connection. 
 
 Definition at line 47 of file connection.cpp. References QPtrList< Task >::setAutoDelete(). | 
Member Function Documentation
| 
 | 
| Initialize this connection to use the given socket. 
 
 
 Definition at line 117 of file connection.cpp. References QObject::connect(), KSocket::socket(), and suspend(). Referenced by KIO::SlaveBase::connectSlave(). | 
| 
 | ||||||||||||
| Initialize the connection to use the given file descriptors. 
 
 
 Definition at line 135 of file connection.cpp. References QObject::connect(), and suspend(). | 
| 
 | 
| Closes the connection. 
 Definition at line 78 of file connection.cpp. References QPtrList< Task >::clear(). | 
| 
 | 
| Returns the input file descriptor. 
 
 Definition at line 80 of file connection.h. | 
| 
 | 
| Returns the output file descriptor. 
 
 Definition at line 85 of file connection.h. | 
| 
 | 
| Checks whether the connection has been initialized. 
 
 
 Definition at line 92 of file connection.h. Referenced by KIO::SlaveBase::connectSlave(), and send(). | 
| 
 | ||||||||||||
| Sends/queues the given command to be sent. 
 
 Definition at line 91 of file connection.cpp. References QPtrList< Task >::append(), QPtrList< Task >::count(), inited(), and sendnow(). Referenced by KIO::SlaveBase::canResume(), KIO::SlaveBase::connected(), KIO::SlaveBase::data(), KIO::SlaveBase::dataReq(), KIO::SlaveBase::delCachedAuthentication(), KIO::SlaveBase::dropNetwork(), KIO::SlaveBase::error(), KIO::SlaveBase::errorPage(), KIO::SlaveBase::finished(), KIO::SlaveBase::infoMessage(), KIO::SlaveBase::listEntries(), KIO::SlaveBase::messageBox(), KIO::SlaveBase::mimeType(), KIO::SlaveBase::needSubURLData(), KIO::SlaveBase::processedSize(), KIO::SlaveBase::redirection(), KIO::SlaveBase::requestNetwork(), KIO::SlaveBase::sendAuthenticationKey(), KIO::SlaveBase::sendMetaData(), KIO::SlaveBase::slaveStatus(), KIO::SlaveBase::speed(), KIO::SlaveBase::statEntry(), KIO::SlaveBase::totalSize(), and KIO::SlaveBase::warning(). | 
| 
 | ||||||||||||
| Sends the given command immediately. 
 
 
 Definition at line 166 of file connection.cpp. References endl(), and kdError(). Referenced by KIO::SlaveInterface::openPassDlg(), and send(). | 
| 
 | ||||||||||||
| Receive data. 
 
 
 Definition at line 197 of file connection.cpp. References endl(), and kdError(). Referenced by KIO::SlaveBase::mimeType(), and KIO::SlaveBase::waitForAnswer(). | 
| 
 | 
| Don't handle incoming data until resumed. 
 Definition at line 64 of file connection.cpp. References QSocketNotifier::setEnabled(). Referenced by init(). | 
| 
 | 
| Resume handling of incoming data. 
 Definition at line 71 of file connection.cpp. References QSocketNotifier::setEnabled(). | 
| 
 | 
| Returns status of connection. 
 
 Definition at line 133 of file connection.h. | 
The documentation for this class was generated from the following files:

