Constructs a network operation object. \fIoperation\fR is the type of the operation, and \fIarg0\fR, \fIarg1\fR and \fIarg2\fR are the first three arguments of the operation. The state is initialized to QNetworkProtocol::StWaiting.
.PP
See also QNetworkProtocol::Operation and QNetworkProtocol::State.
Constructs a network operation object. \fIoperation\fR is the type of the operation, and \fIarg0\fR, \fIarg1\fR and \fIarg2\fR are the first three raw data arguments of the operation. The state is initialized to QNetworkProtocol::StWaiting.
.PP
See also QNetworkProtocol::Operation and QNetworkProtocol::State.
Returns the operation's \fInum\fR-th argument. If this argument was not already set, an empty string is returned.
.PP
Example: network/networkprotocol/nntp.cpp.
.SH "int QNetworkOperation::errorCode () const"
Returns the error code for the last error that occurred.
.SH "void QNetworkOperation::free ()"
Sets this object to delete itself when it hasn't been used for one second.
.PP
Because QNetworkOperation pointers are passed around a lot the QNetworkProtocol generally does not have enough knowledge to delete these at the correct time. If a QNetworkProtocol doesn't need an operation any more it will call this function instead.
.PP
Note: you should never need to call the method yourself.
Sets the network operation's \fInum\fR-th argument to \fIarg\fR.
.SH "void QNetworkOperation::setErrorCode ( int ec )"
Sets the error code to \fIec\fR.
.PP
If the operation failed, the protocol should set an error code to describe the error in more detail. If possible, one of the error codes defined in QNetworkProtocol should be used.
.PP
See also setProtocolDetail() and QNetworkProtocol::Error.
Sets the network operation's \fInum\fR-th raw data argument to \fIarg\fR.
.SH "void QNetworkOperation::setState ( QNetworkProtocol::State state )"
Sets the \fIstate\fR of the operation object. This should be done by the network protocol during processing; at the end it should be set to QNetworkProtocol::StDone or QNetworkProtocol::StFailed, depending on success or failure.