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)