[gnome-games] core: Add UriGameFactory interface



commit fcaf93f2f25f40d812137d72edd224c6564c01fc
Author: Ricard Gascons <gascons1995 gmail com>
Date:   Thu Aug 18 11:34:25 2016 +0200

    core: Add UriGameFactory interface
    
    This is the interface implemented by a factory that performs
    the task of creating games from uris.
    
    This is part of a series of commits to add multi-source support.

 src/Makefile.am                |    1 +
 src/core/uri-game-factory.vala |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 62adf38..b3428c1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -47,6 +47,7 @@ gnome_games_SOURCES = \
        core/runner.vala \
        core/title.vala \
        core/uid.vala \
+       core/uri-game-factory.vala \
        \
        dummy/dummy-cover.vala \
        dummy/dummy-game.vala \
diff --git a/src/core/uri-game-factory.vala b/src/core/uri-game-factory.vala
new file mode 100644
index 0000000..492fbdd
--- /dev/null
+++ b/src/core/uri-game-factory.vala
@@ -0,0 +1,5 @@
+public interface UriGameFactory : Object {
+       public abstract bool is_uri_valid (string uri);
+       public abstract void add_uri (string uri);
+       public abstract async void foreach_game (Games.GameCallback game_callback);
+}


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