34 #ifndef DOXYGEN_SHOULD_SKIP_THIS 36 #ifndef QPIPE_NO_SECURE 49 typedef HANDLE Q_PIPE_ID;
50 #define INVALID_Q_PIPE_ID INVALID_HANDLE_VALUE 52 typedef int Q_PIPE_ID;
53 #define INVALID_Q_PIPE_ID -1 103 bool isValid()
const;
114 Q_PIPE_ID id()
const;
131 void take(Q_PIPE_ID
id,
Type t);
155 bool setInheritable(
bool enabled);
160 int bytesAvailable()
const;
170 int read(
char *data,
int maxsize);
182 int write(
const char *data,
int size);
192 int writeResult(
int *written)
const;
204 friend class Private;
255 bool isValid()
const;
260 Q_PIPE_ID id()
const;
284 void setSecurityEnabled(
bool secure);
318 bool setInheritable(
bool enabled);
328 void finalizeAndRelease();
338 int bytesAvailable()
const;
348 int bytesToWrite()
const;
360 QByteArray read(
int bytes = -1);
371 void write(
const QByteArray &a);
404 QByteArray takeBytesToWrite();
431 void bytesWritten(
int bytes);
458 friend class Private;
506 bool create(
bool secure =
false);
531 Q_DISABLE_COPY(
QPipe)
End of file error.
Definition: qpipe.h:226
QPipeEnd & readEnd()
The read end of the pipe.
Definition: qpipe.h:517
QPipeEnd & writeEnd()
The write end of the pipe.
Definition: qpipe.h:525
A buffered higher-level pipe end.
Definition: qpipe.h:217
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:41
Secure array of bytes.
Definition: qca_tools.h:316
Type
The type of device.
Definition: qpipe.h:81
The pipe end can be read from.
Definition: qpipe.h:83
Unbuffered direct pipe.
Definition: qpipe.h:74
A FIFO buffer (named pipe) abstraction.
Definition: qpipe.h:478
Error
The type of error.
Definition: qpipe.h:224