summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosLine.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-09-03 12:43:45 -0700
committerKeith Packard <keithp@keithp.com>2010-09-03 12:43:45 -0700
commit59798c6fd11502a9c8b66090c23ba50eb250692e (patch)
treec8ea2547ca7c626bab2d401e2d96720ab06d61da /ao-tools/altosui/AltosLine.java
parent16d8d6a8853d09f683b13f9cda3c3174a0aab130 (diff)
altosui: Catch I/O errors on telemetry device, report to user
This catches the USB device being unplugged and makes sure the user sees an error dialog in this case. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosLine.java')
-rw-r--r--ao-tools/altosui/AltosLine.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosLine.java b/ao-tools/altosui/AltosLine.java
new file mode 100644
index 00000000..86e9d4c6
--- /dev/null
+++ b/ao-tools/altosui/AltosLine.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2010 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+package altosui;
+
+public class AltosLine {
+ public String line;
+
+ public AltosLine() {
+ line = null;
+ }
+
+ public AltosLine(String s) {
+ line = s;
+ }
+} \ No newline at end of file