22 #ifndef __connection_h__ 23 #define __connection_h__ 25 #include <kdelibs_export.h> 27 #include <sys/types.h> 30 #include <tqptrlist.h> 34 class TQSocketNotifier;
38 struct KIO_EXPORT Task {
65 void init(KSocket *sock);
73 void init(
int fd_in,
int fd_out);
74 void connect(TQObject *receiver = 0,
const char *member = 0);
87 int fd_to()
const {
return fileno( f_out ); }
94 bool inited()
const {
return (fd_in != -1) && (f_out != 0); }
101 void send(
int cmd,
const TQByteArray &arr = TQByteArray());
109 bool sendnow(
int _cmd,
const TQByteArray &data );
119 int read(
int* _cmd, TQByteArray &data );
147 TQSocketNotifier *notifier;
150 TQPtrList<Task> tasks;
153 class ConnectionPrivate* d;
A namespace for KIO globals.
bool suspended() const
Returns status of connection.
bool inited() const
Checks whether the connection has been initialized.
This class provides a simple means for IPC between two applications via a pipe.
int fd_to() const
Returns the output file descriptor.
int fd_from() const
Returns the input file descriptor.