Mercurial > 510Connectbot
annotate src/com/five_ten_sg/connectbot/util/PreferenceConstants.java @ 201:621732df242e
read deployment.connections on startup for global preferences also
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 02 Jul 2014 21:06:28 -0700 |
parents | 69333ca1563c |
children | b16288cbad37 |
rev | line source |
---|---|
0 | 1 /* |
2 * ConnectBot: simple, powerful, open-source SSH client for Android | |
3 * Copyright 2007 Kenny Root, Jeffrey Sharkey | |
4 * | |
5 * Licensed under the Apache License, Version 2.0 (the "License"); | |
6 * you may not use this file except in compliance with the License. | |
7 * You may obtain a copy of the License at | |
8 * | |
9 * http://www.apache.org/licenses/LICENSE-2.0 | |
10 * | |
11 * Unless required by applicable law or agreed to in writing, software | |
12 * distributed under the License is distributed on an "AS IS" BASIS, | |
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 * See the License for the specific language governing permissions and | |
15 * limitations under the License. | |
16 */ | |
17 | |
18 package com.five_ten_sg.connectbot.util; | |
19 | |
20 import android.os.Build; | |
21 | |
22 | |
23 /** | |
24 * @author Kenny Root | |
25 * | |
26 */ | |
27 public class PreferenceConstants { | |
28 public static final boolean PRE_HONEYCOMB = | |
29 (Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.HONEYCOMB); | |
30 | |
31 public static final String CATEGORY_UI = "category_ui"; | |
32 | |
33 public static final String MEMKEYS = "memkeys"; | |
34 public static final String UPDATE = "update"; | |
35 | |
36 public static final String UPDATE_DAILY = "Daily"; | |
37 public static final String UPDATE_WEEKLY = "Weekly"; | |
38 public static final String UPDATE_NEVER = "Never"; | |
39 | |
40 public static final String LAST_CHECKED = "lastchecked"; | |
41 | |
42 public static final String SCROLLBACK = "scrollback"; | |
43 | |
44 public static final String EMULATION = "emulation"; | |
45 | |
46 public static final String ROTATION = "rotation"; | |
47 | |
48 public static final String ROTATION_DEFAULT = "Default"; | |
49 public static final String ROTATION_LANDSCAPE = "Force landscape"; | |
50 public static final String ROTATION_PORTRAIT = "Force portrait"; | |
51 public static final String ROTATION_AUTOMATIC = "Automatic"; | |
52 | |
53 public static final String KEYMODE = "keymode"; | |
54 | |
55 public static final String KEYMODE_RIGHT = "Use right-side keys"; | |
56 public static final String KEYMODE_LEFT = "Use left-side keys"; | |
57 | |
148
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
58 // must match android:key values in preferences.xml |
0 | 59 public static final String CAMERA = "camera"; |
60 public static final String VOLUP = "volup"; | |
61 public static final String VOLDN = "voldn"; | |
62 public static final String SEARCH = "search"; | |
148
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
63 public static final String PTT = "ptt"; |
0 | 64 |
148
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
65 // must match arrays.xml/list_hw_button_values |
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
66 public static final String HWBUTTON_CTRL = "CTRL"; |
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
67 public static final String HWBUTTON_ESC = "Esc"; |
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
68 public static final String HWBUTTON_TAB = "Tab"; |
0 | 69 public static final String HWBUTTON_SCREEN_CAPTURE = "Screen Capture"; |
70 public static final String HWBUTTON_CTRLA_SPACE = "Ctrl+A then Space"; | |
71 public static final String HWBUTTON_CTRLA = "Ctrl+A"; | |
72 public static final String HWBUTTON_ESC_A = "Esc+A"; | |
148
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
73 public static final String HWBUTTON_MONITOR = "Monitor Key"; |
69333ca1563c
add ptt button p2 preference
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
74 public static final String HWBUTTON_NONE = "None"; |
0 | 75 |
76 public static final String KEEP_ALIVE = "keepalive"; | |
77 | |
78 public static final String WIFI_LOCK = "wifilock"; | |
79 | |
80 public static final String BUMPY_ARROWS = "bumpyarrows"; | |
81 | |
82 public static final String EULA = "eula"; | |
83 | |
84 public static final String SORT_BY_COLOR = "sortByColor"; | |
85 | |
86 public static final String BELL = "bell"; | |
87 public static final String BELL_VOLUME = "bellVolume"; | |
88 public static final String BELL_VIBRATE = "bellVibrate"; | |
89 public static final String BELL_NOTIFICATION = "bellNotification"; | |
90 public static final float DEFAULT_BELL_VOLUME = 0.25f; | |
91 | |
92 public static final String CONNECTION_PERSIST = "connPersist"; | |
93 | |
94 public static final String SHIFT_FKEYS = "shiftfkeys"; | |
95 public static final String CTRL_FKEYS = "ctrlfkeys"; | |
96 public static final String VOLUME_FONT = "volumefont"; | |
97 | |
98 /* Backup identifiers */ | |
99 public static final String BACKUP_PREF_KEY = "prefs"; | |
100 | |
101 public static final String CTRL_STRING = "ctrl_string"; | |
102 public static final String PICKER_STRING = "picker_string"; | |
103 public static final String PICKER_KEEP_OPEN = "picker_keep_open"; | |
104 public static final String EXTENDED_LONGPRESS = "extended_longpress"; | |
105 public static final String SCREEN_CAPTURE_POPUP = "screen_capture_popup"; | |
106 public static final String SCREEN_CAPTURE_FOLDER = "screen_capture_folder"; | |
107 public static final String DEFAULT_FONT_SIZE_HEIGHT = "default_fsize_height"; | |
108 public static final String DEFAULT_FONT_SIZE_WIDTH = "default_fsize_width"; | |
109 public static final String DEFAULT_FONT_SIZE = "default_font_size"; | |
110 public static final String FILE_DIALOG = "file_dialog"; | |
111 public static final String DOWNLOAD_FOLDER = "download_folder"; | |
112 public static final String REMOTE_UPLOAD_FOLDER = "remote_upload_folder"; | |
113 public static final String BACKGROUND_FILE_TRANSFER = "background_file_transfer"; | |
114 public static final String UPLOAD_DESTINATION_PROMPT = "upload_dest_prompt"; | |
115 | |
116 /* Debug */ | |
117 public static final String DEBUG_KEYCODES = "debug_keycodes"; | |
118 | |
119 /* Device keyboard mapping */ | |
120 public static final String CUSTOM_KEYMAP = "list_custom_keymap"; | |
121 public static final String CUSTOM_KEYMAP_DISABLED = "none"; | |
122 public static final String CUSTOM_KEYMAP_FULL = "full"; | |
123 public static final String CUSTOM_KEYMAP_ASUS_TF = "asus_tf"; | |
124 public static final String CUSTOM_KEYMAP_SGH_I927 = "sgh_i927"; | |
125 public static final String CUSTOM_KEYMAP_SGH_I927_ICS = "sgh_i927_ics"; | |
126 public static final String CUSTOM_KEYMAP_SE_XPPRO = "se_xppro"; | |
127 } |