2 * Copyright 2017 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
8 #ifndef REPOSITORIES_CONSTANTS_H
9 #define REPOSITORIES_CONSTANTS_H
15 #undef B_TRANSLATION_CONTEXT
16 #define B_TRANSLATION_CONTEXT "Constants"
18 static const float kAddWindowOffset
= 10.0;
19 static const int16 kTimerAlertOffset
= 15;
20 static const int16 kTimerTimeoutSeconds
= 10;
21 static const int16 kTimerRetrySeconds
= 20;
23 static const BString kOKLabel
= B_TRANSLATE_COMMENT("OK", "Button label");
24 static const BString kCancelLabel
= B_TRANSLATE_COMMENT("Cancel",
26 static const BString kRemoveLabel
= B_TRANSLATE_COMMENT("Remove",
28 static const BString kNewRepoDefaultName
= B_TRANSLATE_COMMENT("Unknown",
29 "Unknown repository name");
38 static const Repository kDefaultRepos
[] = {
39 { "Haiku", "https://packages.haiku-os.org/haiku/master/" B_HAIKU_ABI_NAME
41 { "HaikuPorts", "https://packages.haiku-os.org/haikuports/master/repo/"
42 B_HAIKU_ABI_NAME
"/current" }
47 #define key_frame "frame"
48 #define key_name "repo_name"
49 #define key_url "repo_url"
50 #define key_text "text"
51 #define key_details "details"
52 #define key_rowptr "row_ptr"
53 #define key_taskptr "task_ptr"
54 #define key_count "count"
60 ADD_REPO_WINDOW
= 'BHRa',
62 CANCEL_BUTTON_PRESSED
,
66 LIST_SELECTION_CHANGED
,
67 ENABLE_BUTTON_PRESSED
,
68 DISABLE_BUTTON_PRESSED
,
72 STATUS_VIEW_COMPLETED_TIMEOUT
,
75 TASK_COMPLETED_WITH_ERRORS
,
82 TIMEOUT_ALERT_BUTTON_SELECTION
,
87 // Repo row task state
89 STATE_NOT_IN_QUEUE
= 0,
90 STATE_IN_QUEUE_WAITING
,
91 STATE_IN_QUEUE_RUNNING