.TH "KIO::Connection" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIO::Connection \- This class provides a simple means for IPC between two applications via a pipe.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <connection.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBinit\fP (\fBKSocket\fP *sock)"
.br
.ti -1c
.RI "void \fBinit\fP (int fd_in, int fd_out)"
.br
.ti -1c
.RI "void \fBconnect\fP (\fBQObject\fP *receiver=0, const  char *member=0)"
.br
.ti -1c
.RI "void \fBclose\fP ()"
.br
.ti -1c
.RI "int \fBfd_from\fP () const "
.br
.ti -1c
.RI "int \fBfd_to\fP () const "
.br
.ti -1c
.RI "bool \fBinited\fP () const "
.br
.ti -1c
.RI "void \fBsend\fP (int cmd, const  \fBQByteArray\fP &arr=\fBQByteArray\fP())"
.br
.ti -1c
.RI "bool \fBsendnow\fP (int _cmd, const  \fBQByteArray\fP &data)"
.br
.ti -1c
.RI "int \fBread\fP (int *_cmd, \fBQByteArray\fP &)"
.br
.RI "\fIReceive data. \fP"
.ti -1c
.RI "void \fBsuspend\fP ()"
.br
.RI "\fIDon't handle incoming data until resumed. \fP"
.ti -1c
.RI "void \fBresume\fP ()"
.br
.RI "\fIResume handling of incoming data. \fP"
.ti -1c
.RI "bool \fBsuspended\fP () const "
.br
.RI "\fIReturns status of connection. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBdequeue\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
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. 
.PP
Definition at line 46 of file connection.h.
.SH "Member Function Documentation"
.PP 
.SS "int Connection::read (int * _cmd, \fBQByteArray\fP &)"
.PP
Receive data. \fBReturns:\fP
.RS 4
>=0 indicates the received data size upon success -1 indicates error
.RE
.PP
Definition at line 197 of file connection.cpp.
.PP
Referenced by KIO::SlaveBase::mimeType(), and KIO::SlaveBase::waitForAnswer().
.SS "void Connection::suspend ()"
.PP
Don't handle incoming data until resumed. Definition at line 64 of file connection.cpp.
.PP
References QSocketNotifier::setEnabled().
.SS "void Connection::resume ()"
.PP
Resume handling of incoming data. Definition at line 71 of file connection.cpp.
.PP
References QSocketNotifier::setEnabled().
.SS "bool KIO::Connection::suspended () const\fC [inline]\fP"
.PP
Returns status of connection. Definition at line 90 of file connection.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
