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
104 bool isValid()
const;
115 Q_PIPE_ID id()
const;
132 void take(Q_PIPE_ID
id, Type t);
156 bool setInheritable(
bool enabled);
161 int bytesAvailable()
const;
171 int read(
char *data,
int maxsize);
183 int write(
const char *data,
int size);
193 int writeResult(
int *written)
const;
205 friend class Private;
257 bool isValid()
const;
262 Q_PIPE_ID id()
const;
286 void setSecurityEnabled(
bool secure);
320 bool setInheritable(
bool enabled);
330 void finalizeAndRelease();
340 int bytesAvailable()
const;
350 int bytesToWrite()
const;
362 QByteArray read(
int bytes = -1);
373 void write(
const QByteArray &a);
406 QByteArray takeBytesToWrite();
433 void bytesWritten(
int bytes);
460 friend class Private;
490 QPipe(QObject *parent = 0);
508 bool create(
bool secure =
false);
527 Q_DISABLE_COPY(QPipe)
End of file error.
Definition: qpipe.h:228
QPipeEnd & readEnd()
The read end of the pipe.
Definition: qpipe.h:519
QPipeEnd & writeEnd()
The write end of the pipe.
Definition: qpipe.h:524
A buffered higher-level pipe end.
Definition: qpipe.h:218
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:47
Secure array of bytes.
Definition: qca_tools.h:316
Type
The type of device.
Definition: qpipe.h:82
The pipe end can be read from.
Definition: qpipe.h:84
Unbuffered direct pipe.
Definition: qpipe.h:75
A FIFO buffer (named pipe) abstraction.
Definition: qpipe.h:480
Error
The type of error.
Definition: qpipe.h:226