[gnome-games/wip/aplazas/781334-refactor-game-sources: 1/9] core: Add UriGameFactory.get_schemes()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/aplazas/781334-refactor-game-sources: 1/9] core: Add UriGameFactory.get_schemes()
- Date: Sat, 6 May 2017 09:30:39 +0000 (UTC)
commit 973883ecc7f9a3185475455272e85b9cec971662
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.
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]