Mercurial > pidgin
diff src/ft.h @ 7738:b14442b31a9b
[gaim-migrate @ 8383]
This patch from Tim R. (I'll remember your last name next time), snazzes
up the file transfer dialog a bit. I also went in and hacked on
gtkcellrenderer a bit, so that if you expand the column, the renderer will
grow.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 04 Dec 2003 05:58:26 +0000 |
parents | feb3d21a7794 |
children | 5f0bb52c0609 |
line wrap: on
line diff
--- a/src/ft.h Thu Dec 04 05:31:54 2003 +0000 +++ b/src/ft.h Thu Dec 04 05:58:26 2003 +0000 @@ -41,6 +41,13 @@ } GaimXferType; +typedef enum +{ + GAIM_XFER_CANCEL_NOT = 0, + GAIM_XFER_CANCEL_LOCAL, + GAIM_XFER_CANCEL_REMOTE +} GaimXferCancelType; + /** * File transfer UI operations. * @@ -89,6 +96,7 @@ size_t bytes_sent; /**< The number of bytes sent. */ size_t bytes_remaining; /**< The number of bytes remaining. */ + GaimXferCancelType canceled; /**< File Transfer is canceled. */ gboolean completed; /**< File Transfer is completed. */ /* I/O operations. */ @@ -180,6 +188,15 @@ GaimAccount *gaim_xfer_get_account(const GaimXfer *xfer); /** + * Returns true if the file transfer was canceled. + * + * @param xfer The file transfer. + * + * @return Whether or not the transfer was canceled. + */ +GaimXferCancelType gaim_xfer_is_canceled(const GaimXfer *xfer); + +/** * Returns the completed state for a file transfer. * * @param xfer The file transfer.