KIO
connectionbackend.cpp
105 QTemporaryFile socketfile(prefix + QLatin1Char('/') + appName + QStringLiteral("XXXXXX.%1.kioworker.socket").arg(s_socketCounter.fetchAndAddAcquire(1)));
152 while (socket->state() == QLocalSocket::LocalSocketState::ConnectedState && !signalEmitted && (ms == -1 || timer.elapsed() < ms)) {
182 while (socket->bytesToWrite() > 0 && socket->state() == QLocalSocket::LocalSocketState::ConnectedState) {
213 connect(newSocket, &QLocalSocket::disconnected, result, &ConnectionBackend::socketDisconnected);
255 qCDebug(KIO_CORE_CONNECTION) << this << "Beginning of command" << pendingTask->cmd << "of size" << pendingTask->len;
260 const auto toRead = std::min<off_t>(socket->bytesAvailable(), pendingTask->len - pendingTask->data.size());
261 qCDebug(KIO_CORE_CONNECTION) << socket << "Want to read" << toRead << "bytes; appending to already existing bytes" << pendingTask->data.size();
264 if (pendingTask->data.size() == pendingTask->len) { // read all data of this task -> emit it and reset
266 qCDebug(KIO_CORE_CONNECTION) << "emitting task" << pendingTask->cmd << pendingTask->data.size();
280 } else { // NOTE: if we don't have data pending we may still have a pendingTask that gets resumed when we get more data!
QString i18n(const char *text, const TYPE &arg...)
PostalAddress address(const QVariant &location)
QString path(const QString &relativePath)
Connected
QCA_EXPORT QString appName()
qsizetype size() const const
applicationName
QCoreApplication * instance()
qint64 elapsed() const const
void start()
void readyRead()
void newConnection()
void connectToServer(OpenMode openMode)
void disconnected()
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
void setParent(QObject *parent)
bool isNull() const const
RuntimeLocation
QString writableLocation(StandardLocation type)
QString fromUtf8(QByteArrayView str)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QueuedConnection
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QString path(ComponentFormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.