Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QIODevice * QHttp::currentDestinationDevice (  )  const

Returns the QIODevice pointer that is used as to store the data of the HTTP request being executed. If there is no current request or if the request does not store the data to an IO device, this function returns 0.

This function can be used to delete the QIODevice in the slot connected to the requestFinished() signal.

See also:
currentSourceDevice() get() post() request()

Definition at line 1865 of file qhttp.cpp.

{
    Q_D(const QHttp);
    if (d->pending.isEmpty())
        return 0;
    return d->pending.first()->destinationDevice();
}


Generated by  Doxygen 1.6.0   Back to index