[gitg/wip/actions: 32/34] 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: 32/34] Added initial action interfaces in GitgExt
- Date: Tue, 14 Jan 2014 23:45:39 +0000 (UTC)
commit f0d875ce9d18d6202c301910bb1a6be837d53369
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 01352e7..fb5270b 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]