Mercurial > pidgin
comparison libpurple/protocols/qq/sendqueue.c @ 21358:ba41f2a60253
Rename:
* PurpleDisconnectReason to PurpleConnectionError;
* elements of that enum from PURPLE_REASON_* to PURPLE_CONNECTION_ERROR_*;
* purple_connection_reason_is_fatal to purple_connection_error_is_fatal.
| author | Will Thompson <will.thompson@collabora.co.uk> |
|---|---|
| date | Sun, 14 Oct 2007 21:08:42 +0000 |
| parents | 5eb52c076a2f |
| children | 51dbe83ebbd3 |
comparison
equal
deleted
inserted
replaced
| 21357:5a3242b676ad | 21358:ba41f2a60253 |
|---|---|
| 119 switch (p->cmd) { | 119 switch (p->cmd) { |
| 120 case QQ_CMD_KEEP_ALIVE: | 120 case QQ_CMD_KEEP_ALIVE: |
| 121 if (qd->logged_in) { | 121 if (qd->logged_in) { |
| 122 purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Connection lost!\n"); | 122 purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Connection lost!\n"); |
| 123 purple_connection_error_reason(gc, | 123 purple_connection_error_reason(gc, |
| 124 PURPLE_REASON_NETWORK_ERROR, _("Connection lost")); | 124 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Connection lost")); |
| 125 qd->logged_in = FALSE; | 125 qd->logged_in = FALSE; |
| 126 } | 126 } |
| 127 p->resend_times = -1; | 127 p->resend_times = -1; |
| 128 break; | 128 break; |
| 129 case QQ_CMD_LOGIN: | 129 case QQ_CMD_LOGIN: |
| 130 case QQ_CMD_REQUEST_LOGIN_TOKEN: | 130 case QQ_CMD_REQUEST_LOGIN_TOKEN: |
| 131 if (!qd->logged_in) /* cancel login progress */ | 131 if (!qd->logged_in) /* cancel login progress */ |
| 132 purple_connection_error_reason(gc, | 132 purple_connection_error_reason(gc, |
| 133 PURPLE_REASON_NETWORK_ERROR, _("Login failed, no reply")); | 133 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Login failed, no reply")); |
| 134 p->resend_times = -1; | 134 p->resend_times = -1; |
| 135 break; | 135 break; |
| 136 default:{ | 136 default:{ |
| 137 purple_debug(PURPLE_DEBUG_WARNING, "QQ", | 137 purple_debug(PURPLE_DEBUG_WARNING, "QQ", |
| 138 "%s packet sent %d times but not acked. Not resending it.\n", | 138 "%s packet sent %d times but not acked. Not resending it.\n", |
