comparison 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
comparison
equal deleted inserted replaced
7737:c497b3bb7581 7738:b14442b31a9b
38 GAIM_XFER_UNKNOWN = 0, /**< Unknown file transfer type. */ 38 GAIM_XFER_UNKNOWN = 0, /**< Unknown file transfer type. */
39 GAIM_XFER_SEND, /**< File sending. */ 39 GAIM_XFER_SEND, /**< File sending. */
40 GAIM_XFER_RECEIVE /**< File receiving. */ 40 GAIM_XFER_RECEIVE /**< File receiving. */
41 41
42 } GaimXferType; 42 } GaimXferType;
43
44 typedef enum
45 {
46 GAIM_XFER_CANCEL_NOT = 0,
47 GAIM_XFER_CANCEL_LOCAL,
48 GAIM_XFER_CANCEL_REMOTE
49 } GaimXferCancelType;
43 50
44 /** 51 /**
45 * File transfer UI operations. 52 * File transfer UI operations.
46 * 53 *
47 * Any UI representing a file transfer must assign a filled-out 54 * Any UI representing a file transfer must assign a filled-out
87 int watcher; /**< Watcher. */ 94 int watcher; /**< Watcher. */
88 95
89 size_t bytes_sent; /**< The number of bytes sent. */ 96 size_t bytes_sent; /**< The number of bytes sent. */
90 size_t bytes_remaining; /**< The number of bytes remaining. */ 97 size_t bytes_remaining; /**< The number of bytes remaining. */
91 98
99 GaimXferCancelType canceled; /**< File Transfer is canceled. */
92 gboolean completed; /**< File Transfer is completed. */ 100 gboolean completed; /**< File Transfer is completed. */
93 101
94 /* I/O operations. */ 102 /* I/O operations. */
95 struct 103 struct
96 { 104 {
178 * @return The account. 186 * @return The account.
179 */ 187 */
180 GaimAccount *gaim_xfer_get_account(const GaimXfer *xfer); 188 GaimAccount *gaim_xfer_get_account(const GaimXfer *xfer);
181 189
182 /** 190 /**
191 * Returns true if the file transfer was canceled.
192 *
193 * @param xfer The file transfer.
194 *
195 * @return Whether or not the transfer was canceled.
196 */
197 GaimXferCancelType gaim_xfer_is_canceled(const GaimXfer *xfer);
198
199 /**
183 * Returns the completed state for a file transfer. 200 * Returns the completed state for a file transfer.
184 * 201 *
185 * @param xfer The file transfer. 202 * @param xfer The file transfer.
186 * 203 *
187 * @return The completed state. 204 * @return The completed state.