Mercurial > pidgin
comparison libpurple/protocols/silc/ft.c @ 32336:c7a6b7b6c32f
Silc: Use file-transfer accessor functions
author | andrew.victor@mxit.com |
---|---|
date | Sun, 30 Oct 2011 15:58:20 +0000 |
parents | 3899615cef8a |
children | 4d33c1b30788 |
comparison
equal
deleted
inserted
replaced
32335:0a043c8747c5 | 32336:c7a6b7b6c32f |
---|---|
84 | 84 |
85 if (status == SILC_CLIENT_FILE_MONITOR_DISCONNECT) { | 85 if (status == SILC_CLIENT_FILE_MONITOR_DISCONNECT) { |
86 purple_notify_error(gc, _("Secure File Transfer"), | 86 purple_notify_error(gc, _("Secure File Transfer"), |
87 _("Error during file transfer"), | 87 _("Error during file transfer"), |
88 _("Remote disconnected")); | 88 _("Remote disconnected")); |
89 xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_REMOTE; | 89 purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_REMOTE); |
90 purple_xfer_update_progress(xfer->xfer); | 90 purple_xfer_update_progress(xfer->xfer); |
91 silc_client_file_close(client, conn, session_id); | 91 silc_client_file_close(client, conn, session_id); |
92 return; | 92 return; |
93 } | 93 } |
94 | 94 |
120 } else if (error == SILC_CLIENT_FILE_UNKNOWN_SESSION) { | 120 } else if (error == SILC_CLIENT_FILE_UNKNOWN_SESSION) { |
121 purple_notify_error(gc, _("Secure File Transfer"), | 121 purple_notify_error(gc, _("Secure File Transfer"), |
122 _("Error during file transfer"), | 122 _("Error during file transfer"), |
123 _("File transfer session does not exist")); | 123 _("File transfer session does not exist")); |
124 } | 124 } |
125 xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_REMOTE; | 125 purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_REMOTE); |
126 purple_xfer_update_progress(xfer->xfer); | 126 purple_xfer_update_progress(xfer->xfer); |
127 silc_client_file_close(client, conn, session_id); | 127 silc_client_file_close(client, conn, session_id); |
128 return; | 128 return; |
129 } | 129 } |
130 | 130 |
152 SilcPurpleXfer xfer = purple_xfer_get_protocol_data(x); | 152 SilcPurpleXfer xfer = purple_xfer_get_protocol_data(x); |
153 | 153 |
154 if (!xfer) | 154 if (!xfer) |
155 return; | 155 return; |
156 | 156 |
157 xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_LOCAL; | 157 purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_LOCAL); |
158 purple_xfer_update_progress(xfer->xfer); | 158 purple_xfer_update_progress(xfer->xfer); |
159 silc_client_file_close(xfer->sg->client, xfer->sg->conn, xfer->session_id); | 159 silc_client_file_close(xfer->sg->client, xfer->sg->conn, xfer->session_id); |
160 } | 160 } |
161 | 161 |
162 static void | 162 static void |