1 /* 2 * Copyright 2018, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef HAIKU_DEPOT_CONSTANTS_H 6 #define HAIKU_DEPOT_CONSTANTS_H 7 8 enum { 9 MSG_MAIN_WINDOW_CLOSED = 'mwcl', 10 MSG_PACKAGE_SELECTED = 'pkgs', 11 MSG_PACKAGE_WORKER_BUSY = 'pkwb', 12 MSG_PACKAGE_WORKER_IDLE = 'pkwi', 13 MSG_ADD_VISIBLE_PACKAGES = 'avpk', 14 MSG_UPDATE_SELECTED_PACKAGE = 'uspk', 15 MSG_CLIENT_TOO_OLD = 'oldc', 16 MSG_NETWORK_TRANSPORT_ERROR = 'nett', 17 MSG_SERVER_ERROR = 'svre', 18 MSG_SERVER_DATA_CHANGED = 'svdc', 19 MSG_DID_ADD_USER_RATING = 'adur', 20 MSG_DID_UPDATE_USER_RATING = 'upur' 21 }; 22 23 24 #define RATING_MISSING -1.0f 25 #define RATING_MIN 0.0f 26 27 28 #define HD_ERROR_BASE (B_ERRORS_END + 1) 29 #define HD_NETWORK_INACCESSIBLE (HD_ERROR_BASE + 1) 30 #define HD_CLIENT_TOO_OLD (HD_ERROR_BASE + 2) 31 #define HD_ERR_NOT_MODIFIED (HD_ERROR_BASE + 3) 32 #define HD_ERR_NO_DATA (HD_ERROR_BASE + 4) 33 34 35 #define REPOSITORY_NAME_SYSTEM "system" 36 #define REPOSITORY_NAME_INSTALLED "installed" 37 38 39 // These constants reference resources in 'HaikuDepot.ref' 40 enum { 41 RSRC_STAR_BLUE = 510, 42 RSRC_STAR_GREY = 520, 43 RSRC_INSTALLED = 530, 44 RSRC_ARROW_LEFT = 540, 45 RSRC_ARROW_RIGHT = 550, 46 }; 47 48 #endif // HAIKU_DEPOT_CONSTANTS_H