/* * Copyright 2018-2020, 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', MSG_LANGUAGE_SELECTED = 'lngs', MSG_VIEW_LATEST_USER_USAGE_CONDITIONS = 'vluc', MSG_VIEW_USERS_USER_USAGE_CONDITIONS = 'vuuc', MSG_USER_USAGE_CONDITIONS_DATA = 'uucd', MSG_USER_USAGE_CONDITIONS_ERROR = 'uuce' }; #define RATING_MISSING -1.0f #define RATING_MIN 0.0f #define RGB_COLOR_WHITE (rgb_color) { 255, 255, 255, 255 } #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, }; enum UserUsageConditionsSelectionMode { LATEST = 1, USER = 2, FIXED = 3 // means that the user usage conditions are supplied to the window. }; #define LANGUAGE_DEFAULT_CODE "en" #define LANGUAGE_DEFAULT Language(LANGUAGE_DEFAULT_CODE, "English", true) #define PACKAGE_INFO_MAX_USER_RATINGS 250 #define STR_MDASH "\xE2\x80\x94" #define ALERT_MSG_LOGS_USER_GUIDE "\nInformation about how to view the logs is " \ "available in the HaikuDepot section of the user guide." #define CACHE_DIRECTORY_APP "HaikuDepot" #endif // HAIKU_DEPOT_CONSTANTS_H