/* * Copyright 2018, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef HAIKU_DEPOT_CONSTANTS_H #define HAIKU_DEPOT_CONSTANTS_H enum { MSG_MAIN_WINDOW_CLOSED = 'mwcl', MSG_PACKAGE_SELECTED = 'pkgs', MSG_PACKAGE_WORKER_BUSY = 'pkwb', MSG_PACKAGE_WORKER_IDLE = 'pkwi', MSG_ADD_VISIBLE_PACKAGES = 'avpk', MSG_UPDATE_SELECTED_PACKAGE = 'uspk', MSG_CLIENT_TOO_OLD = 'oldc', MSG_NETWORK_TRANSPORT_ERROR = 'nett', MSG_SERVER_ERROR = 'svre', MSG_SERVER_DATA_CHANGED = 'svdc', MSG_ALERT_SIMPLE_ERROR = 'nser', MSG_DID_ADD_USER_RATING = 'adur', MSG_DID_UPDATE_USER_RATING = 'upur' }; #define RATING_MISSING -1.0f #define RATING_MIN 0.0f #define HD_ERROR_BASE (B_ERRORS_END + 1) #define HD_NETWORK_INACCESSIBLE (HD_ERROR_BASE + 1) #define HD_CLIENT_TOO_OLD (HD_ERROR_BASE + 2) #define HD_ERR_NOT_MODIFIED (HD_ERROR_BASE + 3) #define HD_ERR_NO_DATA (HD_ERROR_BASE + 4) #define REPOSITORY_NAME_SYSTEM "system" #define REPOSITORY_NAME_INSTALLED "installed" #define KEY_ALERT_TEXT "alert_text" #define KEY_ALERT_TITLE "alert_title" #define KEY_WORK_STATUS_TEXT "work_status_text" #define KEY_WORK_STATUS_PROGRESS "work_status_progress" #define KEY_WINDOW_SETTINGS "window_settings" #define KEY_MAIN_SETTINGS "main_settings" // These constants reference resources in 'HaikuDepot.ref' enum { RSRC_STAR_BLUE = 510, RSRC_STAR_GREY = 520, RSRC_INSTALLED = 530, RSRC_ARROW_LEFT = 540, RSRC_ARROW_RIGHT = 550, }; #endif // HAIKU_DEPOT_CONSTANTS_H