On quinta-feira, 8 de novembro de 2012 15.48.29, shane.kea...@accenture.com 
wrote:
> I think most of the issues can be solved by connecting the socket first,
> then using QIODevice as your base class pointer. When you call
> QIODevice::close() that will disconnect the socket.

QNAM proves that it is possible. The put() and post() methods taking a 
QIODevice pointer operate on any class deriving from QIODevice. The 
QNetworkReply test tests QFile, QBuffer, QTcpSocket, QSslSocket, QProcess and 
QNetworkReply itself.

The only thing is that it requires two implementations: the random-access one 
(QFile, QBuffer) and the sequential one (all the rest).

> I'd like to see non blocking (or asynchronous) IO for files as well.

Would be interesting.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to