[gnome-calculator/60-split-out-a-backend-library: 16/47] gcalc: added MathEquationManager interface



commit 873468b0b7a164da06c403a6908558ebc44bb4af
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Dec 5 19:01:03 2018 -0600

    gcalc: added MathEquationManager interface

 gcalc/gcalc-math-equation-manager.vala | 24 ++++++++++++++++++++++++
 gcalc/meson.build                      |  1 +
 2 files changed, 25 insertions(+)
---
diff --git a/gcalc/gcalc-math-equation-manager.vala b/gcalc/gcalc-math-equation-manager.vala
new file mode 100644
index 00000000..43fa2441
--- /dev/null
+++ b/gcalc/gcalc-math-equation-manager.vala
@@ -0,0 +1,24 @@
+/* gcalc-math-equation-manager.vala
+ *
+ * Copyright (C) 2018  Daniel Espinosa <esodan gmail com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ *      Daniel Espinosa <esodan gmail com>
+ */
+public interface GCalc.MathEquationManager : Object {
+  public abstract GLib.ListModel equations { get; }
+}
+
diff --git a/gcalc/meson.build b/gcalc/meson.build
index fb430539..2472d9b4 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -46,6 +46,7 @@ sources = files([
        'gcalc-error-result.vala',
        'gcalc-function-manager.vala',
        'gcalc-math-equation.vala',
+       'gcalc-math-equation-manager.vala',
        'gcalc-math-function.vala',
        'gcalc-math-variables.vala',
        'gcalc-number.vala',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]