[gnome-games] core: Add Media
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add Media
- Date: Fri, 19 Aug 2016 21:09:20 +0000 (UTC)
commit 1df89cb3a208e006b6c90218c4d0f8288575c1ca
Author: Ricard Gascons <gascons1995 gmail com>
Date: Fri Aug 19 12:30:51 2016 +0200
core: Add Media
This is implemented by another class that acts as a set of URIs and
titles.
This is part of a series of commits to add multi-source support.
src/Makefile.am | 1 +
src/core/media.vala | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index a501927..9e25052 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -41,6 +41,7 @@ gnome_games_SOURCES = \
core/game-source.vala \
core/game-uri-adapter.vala \
core/icon.vala \
+ core/media.vala \
core/plugin.vala \
core/plugin-register.vala \
core/plugin-registrar.vala \
diff --git a/src/core/media.vala b/src/core/media.vala
new file mode 100644
index 0000000..660b6b2
--- /dev/null
+++ b/src/core/media.vala
@@ -0,0 +1,10 @@
+// This file is part of GNOME Games. License: GPLv3
+
+public class Games.Media : Object {
+ public Title? title { get; construct; }
+ public string uri { get; construct; }
+
+ public Media (string uri, Title? title = null) {
+ Object (title: title, uri: uri);
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]