DHCP initial timeout 0.25s from 4s
[haiku.git] / src / apps / softwareupdater / constants.h
blob1b82cd410a0b1e6618c6a637fdf32a1546f17747
1 /*
2 * Copyright 2017, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Brian Hill <supernova@warpmail.net>
7 */
8 #ifndef CONSTANTS_H
9 #define CONSTANTS_H
11 enum {
12 ACTION_STEP_INIT = 0,
13 ACTION_STEP_START,
14 ACTION_STEP_DOWNLOAD,
15 ACTION_STEP_APPLY,
16 ACTION_STEP_COMPLETE,
17 ACTION_STEP_MAX
20 enum {
21 STATE_HEAD = 0,
22 STATE_DISPLAY_STATUS,
23 STATE_DISPLAY_PROGRESS,
24 STATE_GET_CONFIRMATION,
25 STATE_APPLY_UPDATES,
26 STATE_FINAL_MESSAGE,
27 STATE_MAX
30 // Message what values
31 static const uint32 kMsgTextUpdate = 'iUPD';
32 static const uint32 kMsgProgressUpdate = 'iPRO';
33 static const uint32 kMsgCancel = 'iCAN';
34 static const uint32 kMsgCancelResponse = 'iCRE';
35 static const uint32 kMsgUpdateConfirmed = 'iCON';
36 static const uint32 kMsgWarningDismissed = 'iWDI';
37 static const uint32 kMsgNetworkAlert = 'iNAL';
38 static const uint32 kMsgRegister = 'iREG';
39 static const uint32 kMsgFinalQuit = 'iFIN';
41 // Message data keys
42 #define kKeyHeader "key_header"
43 #define kKeyDetail "key_detail"
44 #define kKeyPackageName "key_packagename"
45 #define kKeyPackageCount "key_packagecount"
46 #define kKeyPercentage "key_percentage"
47 #define kKeyMessenger "key_messenger"
48 #define kKeyAlertResult "key_alertresult"
51 #endif // CONSTANTS_H