[gnome-games] utils: Add GenericTitle



commit b89163c86a4e93dc6abf5fcb16e9dba641b0eb94
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu May 12 18:27:43 2016 +0200

    utils: Add GenericTitle
    
    This will be used in a subsequent commit to provide MAME game titles to
    GenericGame and hence to allow to replace MameGame by GenericGame.

 src/Makefile.am              |    1 +
 src/utils/generic-title.vala |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 30e62ec..8ce9d42 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -84,6 +84,7 @@ gnome_games_SOURCES = \
        utils/filename-title.vala \
        utils/fingerprint.vala \
        utils/generic-game.vala \
+       utils/generic-title.vala \
        utils/grep.vala \
        \
        config.vala \
diff --git a/src/utils/generic-title.vala b/src/utils/generic-title.vala
new file mode 100644
index 0000000..1418fb6
--- /dev/null
+++ b/src/utils/generic-title.vala
@@ -0,0 +1,13 @@
+// This file is part of GNOME Games. License: GPLv3
+
+public class Games.GenericTitle : Object, Title {
+       private string title;
+
+       public GenericTitle (string title) {
+               this.title = title;
+       }
+
+       public string get_title () throws Error {
+               return title;
+       }
+}


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