Use autotools and intltools, translate user interface, add German translation
[led-pattern-ed] / src / led-pattern.vala
index de4e393..fe3446c 100644 (file)
  * along with LED Pattern Editor. If not, see <http://www.gnu.org/licenses/>.
  */
 
-class LedPattern : Object {
+errordomain LedPatternError {
+       INVALID_PATTERN;
+}
+
+abstract class LedPattern : Object {
        enum ScreenOn {
                DISPLAY_OFF = 0,
                DISPLAY_ON = 1,
@@ -33,6 +37,9 @@ class LedPattern : Object {
 
        public double duration;
 
+       public abstract string dump ();
+       public abstract void parse (string line) throws LedPatternError;
+
        public signal void changed ();
 }