5#include <QtCore/qmetaobject.h>
15 : m_proxying(proxying),
source(iodevice)
26 if (parentPipe && parentPipe->d_func()->m_proxying)
49 auto isNull = [](
const auto &cp) {
return cp ==
nullptr; };
51 for (
const auto &cp : std::as_const(
childPipes))
52 cp->d_func()->pushData(
ba);
92 this->d_func()->initialize();
110 static const OpenMode supportedOpenMode =
ReadOnly;
111 if (!(
mode & supportedOpenMode)) {
112 qFatal(
"Unsupported open mode");
133 d->addChildPipe(childPipe);
158 qFatal(
"QIOPipe is a read-only device");
164#include "moc_qiopipe_p.cpp"
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
QVarLengthArray< QRingBuffer, 2 > readBuffers
\inmodule QtCore \reentrant
virtual bool open(QIODeviceBase::OpenMode mode)
Opens the device and sets its OpenMode to mode.
void readyRead()
This signal is emitted once every time new data is available for reading from the device's current re...
bool isOpen() const
Returns true if the device is open; otherwise returns false.
void addChildPipe(QIOPipe *childPipe)
void removeChildPipe(QIOPipe *childPipe)
QList< QPointer< QIOPipe > > childPipes
~QIOPipePrivate() override
QIOPipePrivate(QIODevice *iodevice, bool proxying)
void pumpData(const QByteArray &ba)
void pushData(const QByteArray &ba)
QIOPipe(QIODevice *parent, Mode mode=EndPipe)
qint64 readData(char *data, qint64 maxlen) override
\reimp
bool isSequential() const override
Returns true if this device is sequential; otherwise returns false.
void setReadChannelCount(int count)
bool open(OpenMode openMode) override
void addChildPipe(QIOPipe *childPipe)
qint64 writeData(const char *data, qint64 len) override
Writes up to maxSize bytes from data to the device.
bool removeOne(const AT &t)
qsizetype removeIf(Predicate pred)
void append(parameter_type t)
static QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
QObject * parent() const
Returns a pointer to the parent object.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source
GLdouble GLdouble GLdouble GLdouble q
bool contains(const AT &t) const noexcept
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent