From 184a5605996658f20c65d3b89f9c155b12e62585 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Thu, 18 May 2017 16:07:00 +0500 Subject: VKontakte: fix random server delivery processing show error popups for sending messages errors --- protocols/VKontakte/src/vk.h | 65 +++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 31 deletions(-) (limited to 'protocols/VKontakte/src/vk.h') diff --git a/protocols/VKontakte/src/vk.h b/protocols/VKontakte/src/vk.h index be73aaf2a9..e47393234b 100644 --- a/protocols/VKontakte/src/vk.h +++ b/protocols/VKontakte/src/vk.h @@ -47,38 +47,41 @@ along with this program. If not, see . #define VKFLAG_MSGMEDIA 512 // сообщение содержит медиаконтент // Errors -#define VKERR_NO_JSONNODE -2 // No JSON Node in server reply -#define VKERR_OFFLINE -1 // Proto is offline -#define VKERR_NOERRORS 0 // No error -#define VKERR_UNKNOWN 1 // Unknown error occurred -#define VKERR_TOO_MANY_REQ_PER_SEC 6 // Too many requests per second -#define VKERR_AUTHORIZATION_FAILED 5 // User authorization failed -#define VKERR_FLOOD_CONTROL 9 // Flood control -#define VKERR_INTERNAL_SERVER_ERR 10 // Internal server error -#define VKERR_CAPTCHA_NEEDED 14 // Captcha needed -#define VKERR_ACCESS_DENIED 15 // Access denied -#define VKERR_VALIDATION_REQUIRED 17 // Validation Required -#define VKERR_COULD_NOT_SAVE_FILE 105 // Couldn't save file -#define VKERR_INVALID_ALBUM_ID 114 // Invalid album id -#define VKERR_INVALID_SERVER 118 // Invalid server -#define VKERR_INVALID_PARAMETERS 100 // One of the parameters specified was missing or invalid -#define VKERR_INVALID_HASH 121 // Invalid hash -#define VKERR_INVALID_AUDIO 123 // Invalid audio -#define VKERR_HIMSELF_AS_FRIEND 174 // Cannot add user himself as friend -#define VKERR_YOU_ON_BLACKLIST 175 // Cannot add this user to friends as they have put you on their blacklist -#define VKERR_USER_ON_BLACKLIST 176 // Cannot add this user to friends as you put him on blacklist -#define VKERR_ACC_WALL_POST_DENIED 214 // Access to adding post denied -#define VKERR_AUDIO_DEL_COPYRIGHT 270 // The audio file was removed by the copyright holder and cannot be reuploaded. -#define VKERR_INVALID_FILENAME 301 // Invalid filename -#define VKERR_INVALID_FILESIZE 302 // Invalid filesize +#define VKERR_NO_JSONNODE -2 // No JSON Node in server reply +#define VKERR_OFFLINE -1 // Proto is offline +#define VKERR_NOERRORS 0 // No error +#define VKERR_UNKNOWN 1 // Unknown error occurred +#define VKERR_TOO_MANY_REQ_PER_SEC 6 // Too many requests per second +#define VKERR_AUTHORIZATION_FAILED 5 // User authorization failed +#define VKERR_FLOOD_CONTROL 9 // Flood control +#define VKERR_INTERNAL_SERVER_ERR 10 // Internal server error +#define VKERR_CAPTCHA_NEEDED 14 // Captcha needed +#define VKERR_ACCESS_DENIED 15 // Access denied +#define VKERR_VALIDATION_REQUIRED 17 // Validation Required +#define VKERR_COULD_NOT_SAVE_FILE 105 // Couldn't save file +#define VKERR_INVALID_ALBUM_ID 114 // Invalid album id +#define VKERR_INVALID_SERVER 118 // Invalid server +#define VKERR_INVALID_PARAMETERS 100 // One of the parameters specified was missing or invalid +#define VKERR_INVALID_HASH 121 // Invalid hash +#define VKERR_INVALID_AUDIO 123 // Invalid audio +#define VKERR_HIMSELF_AS_FRIEND 174 // Cannot add user himself as friend +#define VKERR_YOU_ON_BLACKLIST 175 // Cannot add this user to friends as they have put you on their blacklist +#define VKERR_USER_ON_BLACKLIST 176 // Cannot add this user to friends as you put him on blacklist +#define VKERR_ACC_WALL_POST_DENIED 214 // Access to adding post denied +#define VKERR_AUDIO_DEL_COPYRIGHT 270 // The audio file was removed by the copyright holder and cannot be reuploaded. +#define VKERR_INVALID_FILENAME 301 // Invalid filename +#define VKERR_INVALID_FILESIZE 302 // Invalid filesize +#define VKERR_CANT_SEND_USER_ON_BLACKLIST 900 // Can't send messages for users from blacklist +#define VKERR_CANT_SEND_USER_WITHOUT_DIALOGS 901 // Can't send messages for users without dialogs +#define VKERR_CANT_SEND_YOU_ON_BLACKLIST 902 // Can't send messages to this user due to their privacy settings // File upload custom error -#define VKERR_FILE_NOT_EXIST 10100 // File does not exist -#define VKERR_FTYPE_NOT_SUPPORTED 10101 // File type not supported -#define VKERR_ERR_OPEN_FILE 10103 // Error open file -#define VKERR_ERR_READ_FILE 10104 // Error read file -#define VKERR_FILE_NOT_UPLOADED 10105 // File upload error -#define VKERR_INVALID_URL 10106 // Upload server returned empty URL -#define VKERR_INVALID_USER 10107 // Invalid or unknown recipient user ID +#define VKERR_FILE_NOT_EXIST 10100 // File does not exist +#define VKERR_FTYPE_NOT_SUPPORTED 10101 // File type not supported +#define VKERR_ERR_OPEN_FILE 10103 // Error open file +#define VKERR_ERR_READ_FILE 10104 // Error read file +#define VKERR_FILE_NOT_UPLOADED 10105 // File upload error +#define VKERR_INVALID_URL 10106 // Upload server returned empty URL +#define VKERR_INVALID_USER 10107 // Invalid or unknown recipient user ID #define VK_USER_DEACTIVATE_ACTION 9321 -- cgit v1.2.3