view src/com/five_ten_sg/connectbot/util/PreferenceConstants.java @ 155:156b53fc4815

add showurl command
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 17:54:39 -0700
parents 69333ca1563c
children b16288cbad37
line wrap: on
line source

/*
 * ConnectBot: simple, powerful, open-source SSH client for Android
 * Copyright 2007 Kenny Root, Jeffrey Sharkey
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.five_ten_sg.connectbot.util;

import android.os.Build;


/**
 * @author Kenny Root
 *
 */
public class PreferenceConstants {
    public static final boolean PRE_HONEYCOMB =
        (Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.HONEYCOMB);

    public static final String CATEGORY_UI = "category_ui";

    public static final String MEMKEYS = "memkeys";
    public static final String UPDATE = "update";

    public static final String UPDATE_DAILY = "Daily";
    public static final String UPDATE_WEEKLY = "Weekly";
    public static final String UPDATE_NEVER = "Never";

    public static final String LAST_CHECKED = "lastchecked";

    public static final String SCROLLBACK = "scrollback";

    public static final String EMULATION = "emulation";

    public static final String ROTATION = "rotation";

    public static final String ROTATION_DEFAULT = "Default";
    public static final String ROTATION_LANDSCAPE = "Force landscape";
    public static final String ROTATION_PORTRAIT = "Force portrait";
    public static final String ROTATION_AUTOMATIC = "Automatic";

    public static final String KEYMODE = "keymode";

    public static final String KEYMODE_RIGHT = "Use right-side keys";
    public static final String KEYMODE_LEFT = "Use left-side keys";

    // must match android:key values in preferences.xml
    public static final String CAMERA = "camera";
    public static final String VOLUP = "volup";
    public static final String VOLDN = "voldn";
    public static final String SEARCH = "search";
    public static final String PTT = "ptt";

    // must match arrays.xml/list_hw_button_values
    public static final String HWBUTTON_CTRL = "CTRL";
    public static final String HWBUTTON_ESC = "Esc";
    public static final String HWBUTTON_TAB  = "Tab";
    public static final String HWBUTTON_SCREEN_CAPTURE = "Screen Capture";
    public static final String HWBUTTON_CTRLA_SPACE = "Ctrl+A then Space";
    public static final String HWBUTTON_CTRLA = "Ctrl+A";
    public static final String HWBUTTON_ESC_A = "Esc+A";
    public static final String HWBUTTON_MONITOR = "Monitor Key";
    public static final String HWBUTTON_NONE = "None";

    public static final String KEEP_ALIVE = "keepalive";

    public static final String WIFI_LOCK = "wifilock";

    public static final String BUMPY_ARROWS = "bumpyarrows";

    public static final String EULA = "eula";

    public static final String SORT_BY_COLOR = "sortByColor";

    public static final String BELL = "bell";
    public static final String BELL_VOLUME = "bellVolume";
    public static final String BELL_VIBRATE = "bellVibrate";
    public static final String BELL_NOTIFICATION = "bellNotification";
    public static final float DEFAULT_BELL_VOLUME = 0.25f;

    public static final String CONNECTION_PERSIST = "connPersist";

    public static final String SHIFT_FKEYS = "shiftfkeys";
    public static final String CTRL_FKEYS = "ctrlfkeys";
    public static final String VOLUME_FONT = "volumefont";

    /* Backup identifiers */
    public static final String BACKUP_PREF_KEY = "prefs";

    public static final String CTRL_STRING = "ctrl_string";
    public static final String PICKER_STRING = "picker_string";
    public static final String PICKER_KEEP_OPEN = "picker_keep_open";
    public static final String EXTENDED_LONGPRESS = "extended_longpress";
    public static final String SCREEN_CAPTURE_POPUP = "screen_capture_popup";
    public static final String SCREEN_CAPTURE_FOLDER = "screen_capture_folder";
    public static final String DEFAULT_FONT_SIZE_HEIGHT = "default_fsize_height";
    public static final String DEFAULT_FONT_SIZE_WIDTH = "default_fsize_width";
    public static final String DEFAULT_FONT_SIZE = "default_font_size";
    public static final String FILE_DIALOG = "file_dialog";
    public static final String DOWNLOAD_FOLDER = "download_folder";
    public static final String REMOTE_UPLOAD_FOLDER = "remote_upload_folder";
    public static final String BACKGROUND_FILE_TRANSFER = "background_file_transfer";
    public static final String UPLOAD_DESTINATION_PROMPT = "upload_dest_prompt";

    /* Debug */
    public static final String DEBUG_KEYCODES = "debug_keycodes";

    /* Device keyboard mapping */
    public static final String CUSTOM_KEYMAP = "list_custom_keymap";
    public static final String CUSTOM_KEYMAP_DISABLED = "none";
    public static final String CUSTOM_KEYMAP_FULL = "full";
    public static final String CUSTOM_KEYMAP_ASUS_TF = "asus_tf";
    public static final String CUSTOM_KEYMAP_SGH_I927 = "sgh_i927";
    public static final String CUSTOM_KEYMAP_SGH_I927_ICS = "sgh_i927_ics";
    public static final String CUSTOM_KEYMAP_SE_XPPRO = "se_xppro";
}