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

QIODevice * QHttp::currentSourceDevice (  )  const

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

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

See also:
currentDestinationDevice() post() request()

Definition at line 1847 of file qhttp.cpp.

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


Generated by  Doxygen 1.6.0   Back to index