[gnome-games] core: Add UriGameFactory.get_schemes()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add UriGameFactory.get_schemes()
- Date: Sun, 7 May 2017 05:02:01 +0000 (UTC)
commit e71c56defba52357cb898b69b5972a207eb50ff6
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat May 6 11:15:06 2017 +0200
core: Add UriGameFactory.get_schemes()
This will allow game factories to declare the kind of URI schemes they
accept.
https://bugzilla.gnome.org/show_bug.cgi?id=781334
src/core/uri-game-factory.vala | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/core/uri-game-factory.vala b/src/core/uri-game-factory.vala
index 152af39..1f263f7 100644
--- a/src/core/uri-game-factory.vala
+++ b/src/core/uri-game-factory.vala
@@ -1,7 +1,14 @@
public interface Games.UriGameFactory : Object {
public signal void game_added (Game game);
- public abstract string[] get_mime_types ();
+ public virtual string[] get_mime_types () {
+ return {};
+ }
+
+ public virtual string[] get_schemes () {
+ return {};
+ }
+
public abstract async void add_uri (Uri uri);
public abstract async Game? query_game_for_uri (Uri 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]