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 49 of file connection.h.
Constructor & Destructor Documentation
|
Creates a new connection.
Definition at line 48 of file connection.cpp. |
Member Function Documentation
|
Initialize this connection to use the given socket.
Definition at line 124 of file connection.cpp. References suspend(). Referenced by KIO::SlaveBase::connectSlave(). |
|
Initialize the connection to use the given file descriptors.
Definition at line 144 of file connection.cpp. References suspend(). |
|
Closes the connection.
Definition at line 79 of file connection.cpp. |
|
Returns the input file descriptor.
Definition at line 82 of file connection.h. |
|
Returns the output file descriptor.
Definition at line 87 of file connection.h. |
|
Checks whether the connection has been initialized.
Definition at line 94 of file connection.h. Referenced by KIO::SlaveBase::connectSlave(), and send(). |
|
Sends/queues the given command to be sent.
Definition at line 98 of file connection.cpp. |
|
Sends the given command immediately.
Definition at line 175 of file connection.cpp. References endl(), and kdError(). Referenced by KIO::SlaveInterface::messageBox(), KIO::SlaveInterface::openPassDlg(), and send(). |
|
Receive data.
Definition at line 206 of file connection.cpp. |
|
Don't handle incoming data until resumed.
Definition at line 65 of file connection.cpp. Referenced by init(), and KIO::SlaveInterface::messageBox(). |
|
Resume handling of incoming data.
Definition at line 72 of file connection.cpp. Referenced by KIO::SlaveInterface::messageBox(). |
|
Returns status of connection.
Definition at line 135 of file connection.h. |
The documentation for this class was generated from the following files: