[chirp_devel] [PATCH 1 of 6] Add RadioPrompts class for storing prompt strings. #1163

Tom Hayward
Tue Oct 8 13:29:44 PDT 2013


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1381263400 25200
# Node ID 4f5c50bf03253205ce13e9cbc9e73d139140426b
# Parent  f7658c8abf415a92aef21c20687ac4e3ee1c89c5
Add RadioPrompts class for storing prompt strings. #1163

diff -r f7658c8abf41 -r 4f5c50bf0325 chirp/chirp_common.py
--- a/chirp/chirp_common.py	Mon Oct 07 09:03:24 2013 -0700
+++ b/chirp/chirp_common.py	Tue Oct 08 13:16:40 2013 -0700
@@ -643,7 +643,14 @@
     import sys
 
     sys.stderr.write("\r%s" % status)
-    
+
+
+class RadioPrompts:
+    """Radio prompt strings"""
+    experimental = None
+    pre_download = None
+    pre_upload = None
+
 
 BOOLEAN = [True, False]
 
@@ -956,6 +963,11 @@
         """Return a printable name for this radio"""
         return "%s %s" % (cls.VENDOR, cls.MODEL)
 
+    @classmethod
+    def get_prompts(cls):
+        """Return a set of strings for use in prompts"""
+        return RadioPrompts()
+
     def set_pipe(self, pipe):
         """Set the serial object to be used for communications"""
         self.pipe = pipe



More information about the chirp_devel mailing list