X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTCommand.java;h=874a29dda7fcf2ceae1d92c622d034fb31fb78e9;hb=HEAD;hp=b6a0411c099018cf78d69690c8e5041c7c41a0fc;hpb=d6ee0801333ff93dffd851f4c1a44519c96c371d;p=fanfix.git diff --git a/src/jexer/TCommand.java b/src/jexer/TCommand.java index b6a0411..874a29d 100644 --- a/src/jexer/TCommand.java +++ b/src/jexer/TCommand.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -135,6 +135,11 @@ public class TCommand { */ public static final int SAVE = 30; + /** + * Backend disconnected. + */ + public static final int BACKEND_DISCONNECT = 100; + public static final TCommand cmAbort = new TCommand(ABORT); public static final TCommand cmExit = new TCommand(EXIT); public static final TCommand cmQuit = new TCommand(EXIT); @@ -155,6 +160,7 @@ public class TCommand { public static final TCommand cmHelp = new TCommand(HELP); public static final TCommand cmSave = new TCommand(SAVE); public static final TCommand cmMenu = new TCommand(MENU); + public static final TCommand cmBackendDisconnect = new TCommand(BACKEND_DISCONNECT); // ------------------------------------------------------------------------ // Variables -------------------------------------------------------------- @@ -170,11 +176,11 @@ public class TCommand { // ------------------------------------------------------------------------ /** - * Protected constructor. Subclasses can be used to define new commands. + * Public constructor. * * @param type the Type of command, one of EXIT, CASCADE, etc. */ - protected TCommand(final int type) { + public TCommand(final int type) { this.type = type; }