[gitg/wip/actions: 1/2] Added initial action interfaces in GitgExt
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/actions: 1/2] Added initial action interfaces in GitgExt
- Date: Tue, 7 Jan 2014 01:14:20 +0000 (UTC)
commit 924424ba481724854edf340754af6b8f99de7fd9
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Jan 6 18:00:11 2014 +0100
Added initial action interfaces in GitgExt
libgitg-ext/Makefile.am | 4 +++
libgitg-ext/gitg-ext-action-interface.vala | 29 +++++++++++++++++++++++
libgitg-ext/gitg-ext-action.vala | 35 ++++++++++++++++++++++++++++
libgitg-ext/gitg-ext-commit-action.vala | 30 ++++++++++++++++++++++++
libgitg-ext/gitg-ext-ref-action.vala | 30 ++++++++++++++++++++++++
5 files changed, 128 insertions(+), 0 deletions(-)
---
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index 2d3190b..1a1145a 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -43,6 +43,10 @@ libgitg_ext_libgitg_ext_1_0_la_LIBADD = \
libgitg_ext_libgitg_ext_1_0_la_VALASOURCES = \
libgitg-ext/gitg-ext-assembly-info.vala \
+ libgitg-ext/gitg-ext-action-interface.vala \
+ libgitg-ext/gitg-ext-action.vala \
+ libgitg-ext/gitg-ext-commit-action.vala \
+ libgitg-ext/gitg-ext-ref-action.vala \
libgitg-ext/gitg-ext-application.vala \
libgitg-ext/gitg-ext-ui-element.vala \
libgitg-ext/gitg-ext-activity.vala \
diff --git a/libgitg-ext/gitg-ext-action-interface.vala b/libgitg-ext/gitg-ext-action-interface.vala
new file mode 100644
index 0000000..b17f12a
--- /dev/null
+++ b/libgitg-ext/gitg-ext-action-interface.vala
@@ -0,0 +1,29 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace GitgExt
+{
+
+public interface ActionInterface : Object
+{
+}
+
+}
+
+// ex: ts=4 noet
diff --git a/libgitg-ext/gitg-ext-action.vala b/libgitg-ext/gitg-ext-action.vala
new file mode 100644
index 0000000..a1dcc27
--- /dev/null
+++ b/libgitg-ext/gitg-ext-action.vala
@@ -0,0 +1,35 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace GitgExt
+{
+
+public interface Action : Object
+{
+ public abstract ActionInterface action_interface { get; construct set; }
+
+ public abstract string label { get; }
+ public abstract bool enabled { get; }
+
+ public abstract void activate();
+}
+
+}
+
+// ex: ts=4 noet
diff --git a/libgitg-ext/gitg-ext-commit-action.vala b/libgitg-ext/gitg-ext-commit-action.vala
new file mode 100644
index 0000000..b348749
--- /dev/null
+++ b/libgitg-ext/gitg-ext-commit-action.vala
@@ -0,0 +1,30 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace GitgExt
+{
+
+public interface CommitAction : Action
+{
+ public abstract Ggit.Commit commit { get; construct set; }
+}
+
+}
+
+// ex: ts=4 noet
diff --git a/libgitg-ext/gitg-ext-ref-action.vala b/libgitg-ext/gitg-ext-ref-action.vala
new file mode 100644
index 0000000..f5c9ea6
--- /dev/null
+++ b/libgitg-ext/gitg-ext-ref-action.vala
@@ -0,0 +1,30 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2014 - Jesse van den Kieboom
+ *
+ * gitg 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace GitgExt
+{
+
+public interface RefAction : Action
+{
+ public abstract Ggit.Ref reference { get; construct set; }
+}
+
+}
+
+// ex: ts=4 noet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]