summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqurloperator.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqurloperator.3qt')
-rw-r--r--doc/man/man3/tqurloperator.3qt18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/man/man3/tqurloperator.3qt b/doc/man/man3/tqurloperator.3qt
index 36c60f027..193429d13 100644
--- a/doc/man/man3/tqurloperator.3qt
+++ b/doc/man/man3/tqurloperator.3qt
@@ -25,7 +25,7 @@ Inherits TQObject and QUrl.
.BI "\fBQUrlOperator\fR ( const QUrlOperator & url )"
.br
.ti -1c
-.BI "\fBQUrlOperator\fR ( const QUrlOperator & url, const TQString & relUrl, bool checkSlash = FALSE )"
+.BI "\fBQUrlOperator\fR ( const QUrlOperator & url, const TQString & relUrl, bool checkSlash = false )"
.br
.ti -1c
.BI "virtual \fB~QUrlOperator\fR ()"
@@ -49,10 +49,10 @@ Inherits TQObject and QUrl.
.BI "virtual const QNetworkOperation * \fBput\fR ( const QByteArray & data, const TQString & location = TQString::null )"
.br
.ti -1c
-.BI "virtual QPtrList<QNetworkOperation> \fBcopy\fR ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )"
+.BI "virtual QPtrList<QNetworkOperation> \fBcopy\fR ( const TQString & from, const TQString & to, bool move = false, bool toPath = true )"
.br
.ti -1c
-.BI "virtual void \fBcopy\fR ( const QStringList & files, const TQString & dest, bool move = FALSE )"
+.BI "virtual void \fBcopy\fR ( const QStringList & files, const TQString & dest, bool move = false )"
.br
.ti -1c
.BI "virtual bool \fBisDir\fR ( bool * ok = 0 )"
@@ -169,7 +169,7 @@ Constructs a QUrlOperator using \fIurl\fR and parses this string.
If you pass strings like "/home/qt" the "file" protocol is assumed.
.SH "QUrlOperator::QUrlOperator ( const QUrlOperator & url )"
Constructs a copy of \fIurl\fR.
-.SH "QUrlOperator::QUrlOperator ( const QUrlOperator & url, const TQString & relUrl, bool checkSlash = FALSE )"
+.SH "QUrlOperator::QUrlOperator ( const QUrlOperator & url, const TQString & relUrl, bool checkSlash = false )"
Constructs a QUrlOperator. The URL on which this QUrlOperator operates is constructed out of the arguments \fIurl\fR, \fIrelUrl\fR and \fIcheckSlash\fR: see the corresponding QUrl constructor for an explanation of these arguments.
.SH "QUrlOperator::~QUrlOperator ()\fC [virtual]\fR"
Destructor.
@@ -179,18 +179,18 @@ Clears the cache of children.
This signal is emitted whenever the URL operator's connection state changes. \fIstate\fR describes the new state, which is a QNetworkProtocol::ConnectionState value.
.PP
\fIdata\fR is a string that describes the change of the connection. This can be used to display a message to the user.
-.SH "QPtrList<QNetworkOperation> QUrlOperator::copy ( const TQString & from, const TQString & to, bool move = FALSE, bool toPath = TRUE )\fC [virtual]\fR"
-Copies the file \fIfrom\fR to \fIto\fR. If \fImove\fR is TRUE, the file is moved (copied and removed). \fIfrom\fR must point to a file and \fIto\fR must point to a directory (into which \fIfrom\fR is copied) unless \fItoPath\fR is set to FALSE. If \fItoPath\fR is set to FALSE then the \fIto\fR variable is assumed to be the absolute file path (destination file path + file name). The copying is done using the get() and put() operations. If you want to be notified about the progress of the operation, connect to the dataTransferProgress() signal. Bear in mind that the get() and put() operations emit this signal through the QUrlOperator. The number of transferred bytes and the total bytes that you receive as arguments in this signal do not relate to the the whole copy operation; they relate first to the get() and then to the put() operation. Always check what type of operation the signal comes from; this is given in the signal's last argument.
+.SH "QPtrList<QNetworkOperation> QUrlOperator::copy ( const TQString & from, const TQString & to, bool move = false, bool toPath = true )\fC [virtual]\fR"
+Copies the file \fIfrom\fR to \fIto\fR. If \fImove\fR is true, the file is moved (copied and removed). \fIfrom\fR must point to a file and \fIto\fR must point to a directory (into which \fIfrom\fR is copied) unless \fItoPath\fR is set to false. If \fItoPath\fR is set to false then the \fIto\fR variable is assumed to be the absolute file path (destination file path + file name). The copying is done using the get() and put() operations. If you want to be notified about the progress of the operation, connect to the dataTransferProgress() signal. Bear in mind that the get() and put() operations emit this signal through the QUrlOperator. The number of transferred bytes and the total bytes that you receive as arguments in this signal do not relate to the the whole copy operation; they relate first to the get() and then to the put() operation. Always check what type of operation the signal comes from; this is given in the signal's last argument.
.PP
At the end, finished() (with success or failure) is emitted, so check the state of the network operation object to see whether or not the operation was successful.
.PP
Because a move or copy operation consists of multiple operations (get(), put() and maybe remove()), this function doesn't return a single QNetworkOperation, but rather a list of them. They are in the order: get(), put() and (if applicable) remove().
.PP
See also get() and put().
-.SH "void QUrlOperator::copy ( const QStringList & files, const TQString & dest, bool move = FALSE )\fC [virtual]\fR"
+.SH "void QUrlOperator::copy ( const QStringList & files, const TQString & dest, bool move = false )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Copies the \fIfiles\fR to the directory \fIdest\fR. If \fImove\fR is TRUE the files are moved, not copied. \fIdest\fR must point to a directory.
+Copies the \fIfiles\fR to the directory \fIdest\fR. If \fImove\fR is true the files are moved, not copied. \fIdest\fR must point to a directory.
.PP
This function calls copy() for each entry in \fIfiles\fR in turn. You don't get a result from this function; each time a new copy begins, startedNextCopy() is emitted, with a list of QNetworkOperations that describe the new copy operation.
.SH "void QUrlOperator::createdDirectory ( const QUrlInfo & i, QNetworkOperation * op )\fC [signal]\fR"
@@ -260,7 +260,7 @@ Finds a network protocol for the URL and deletes the old network protocol.
.SH "QUrlInfo QUrlOperator::info ( const TQString & entry ) const\fC [virtual]\fR"
Returns the URL information for the child \fIentry\fR, or returns an empty QUrlInfo object if there is no information available about \fIentry\fR. Information about \fIentry\fR is only available after a successfully finished listChildren() operation.
.SH "bool QUrlOperator::isDir ( bool * ok = 0 )\fC [virtual]\fR"
-Returns TRUE if the URL is a directory; otherwise returns FALSE. This may not always work correctly, if the protocol of the URL is something other than file (local filesystem). If you pass a bool pointer as the \fIok\fR argument, \fI*ok\fR is set to TRUE if the result of this function is known to be correct, and to FALSE otherwise.
+Returns true if the URL is a directory; otherwise returns false. This may not always work correctly, if the protocol of the URL is something other than file (local filesystem). If you pass a bool pointer as the \fIok\fR argument, \fI*ok\fR is set to true if the result of this function is known to be correct, and to false otherwise.
.SH "void QUrlOperator::itemChanged ( QNetworkOperation * op )\fC [signal]\fR"
This signal is emitted whenever a file which is a child of the URL has been changed, for example by successfully calling rename(). \fIop\fR is a pointer to the operation object which contains all the information about the operation, including the state. \fCop->arg(0)\fR holds the original file name and \fCop->arg(1)\fR holds the new file name (if it was changed).
.PP