diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-18 12:06:08 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-18 12:06:08 +0000 |
| commit | 9c08abcff13bb568aa0825b67ac0cdf66b756798 (patch) | |
| tree | 22525f62e30cd59a2ee7c0736ba88030349cbfff /source/QXmppTransferManager.h | |
| parent | d410cf9b263816d6951f9393476216710354f51d (diff) | |
| download | qxmpp-9c08abcff13bb568aa0825b67ac0cdf66b756798.tar.gz | |
improve code documentation
Diffstat (limited to 'source/QXmppTransferManager.h')
| -rw-r--r-- | source/QXmppTransferManager.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/QXmppTransferManager.h b/source/QXmppTransferManager.h index 59fba3c9..e248ed1b 100644 --- a/source/QXmppTransferManager.h +++ b/source/QXmppTransferManager.h @@ -80,12 +80,14 @@ class QXmppTransferJob : public QObject Q_OBJECT public: + /// This enum is used to describe the direction of a transfer job. enum Direction { IncomingDirection, ///< The file is being received. OutgoingDirection, ///< The file is being sent. }; + /// This enum is used to describe the type of error encountered by a transfer job. enum Error { NoError = 0, ///< No error occured. @@ -95,6 +97,7 @@ public: ProtocolError, ///< An error was encountered in the file transfer protocol. }; + /// This enum is used to describe a transfer method. enum Method { NoMethod = 0, ///< No transfer method. @@ -104,12 +107,13 @@ public: }; Q_DECLARE_FLAGS(Methods, Method) + /// This enum is used to describe the state of a transfer job. enum State { - OfferState = 0, - StartState = 1, - TransferState = 2, - FinishedState = 3, + OfferState = 0, ///< The transfer is being offered to the remote party. + StartState = 1, ///< The transfer is being connected. + TransferState = 2, ///< The transfer is ongoing. + FinishedState = 3, ///< The transfer is finished. }; void abort(); @@ -226,6 +230,10 @@ signals: /// To accept the transfer job, call the job's QXmppTransferJob::accept() method. /// To refuse the transfer job, call the job's QXmppTransferJob::abort() method. void fileReceived(QXmppTransferJob *offer); + + /// This signal is emitted whenever a transfer job is finished. + /// + /// \sa QXmppTransferJob::finished() void finished(QXmppTransferJob *job); /// This signal is emitted to send logging messages. |
