[Kde-pim] Tomboy resource: Questions to the usage of KIO::KJob

Kevin Krammer krammer at kde.org
Sun Jun 19 13:02:13 BST 2016


On Sunday, 2016-06-19, 00:57:08, Daniel Vrátil wrote:
> 	 QNetworkReply *reply = requestor->get(request, requestParams);
> 	// reply->readAll() will block until all data are received
> 	QJsonDocument document = QJsonDocument::fromJson(reply->readAll(),
> Q_NULLPTR);

I don't think that QNetworkReply::readAll() will block.
It is more likely that this will just return an empty QByteArray since the 
request hasn't even started yet.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20160619/05c89be4/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list