[gnome-games] core: Add Description & Rating
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add Description & Rating
- Date: Tue, 24 Jul 2018 06:47:29 +0000 (UTC)
commit 30a5cb323e9630d09411a5e0757dcbb7251a1740
Author: 1PunMan <saurabhsingh412 gmail com>
Date: Sat Apr 14 23:32:35 2018 +0530
core: Add Description & Rating
These will be used in a subsequent commit to create a generic game storing its
description and rating source.
src/core/description.vala | 7 +++++++
src/core/rating.vala | 7 +++++++
src/meson.build | 2 ++
3 files changed, 16 insertions(+)
---
diff --git a/src/core/description.vala b/src/core/description.vala
new file mode 100644
index 00000000..69058c8a
--- /dev/null
+++ b/src/core/description.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public interface Games.Description : Object {
+ public signal void changed ();
+
+ public abstract string get_description ();
+}
diff --git a/src/core/rating.vala b/src/core/rating.vala
new file mode 100644
index 00000000..88313378
--- /dev/null
+++ b/src/core/rating.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public interface Games.Rating : Object {
+ public signal void changed ();
+
+ public abstract float get_rating ();
+}
diff --git a/src/meson.build b/src/meson.build
index f0ac6c33..f764c4d5 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -16,6 +16,7 @@ vala_sources = [
'core/cooperative.vala',
'core/cover.vala',
+ 'core/description.vala',
'core/developer.vala',
'core/game.vala',
'core/game-callback.vala',
@@ -34,6 +35,7 @@ vala_sources = [
'core/plugin-register-iterator.vala',
'core/plugin-registrar.vala',
'core/publisher.vala',
+ 'core/rating.vala',
'core/release-date.vala',
'core/runner.vala',
'core/title.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]