[gnome-games] core: Add Runner.stop ()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add Runner.stop ()
- Date: Wed, 17 Aug 2016 18:56:35 +0000 (UTC)
commit 1871d6bde3f0e1d22d8e3b9315a4dfd30c6e1af3
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Aug 17 14:05:29 2016 +0200
core: Add Runner.stop ()
Also implement it in the remaining runners.
This will be used in the next commit to explicitly stop a runner when
its game is quitted.
https://bugzilla.gnome.org/show_bug.cgi?id=770004
src/command/command-runner.vala | 3 +++
src/core/runner.vala | 1 +
src/dummy/dummy-runner.vala | 3 +++
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index bb367ed..1cd310a 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -75,6 +75,9 @@ public class Games.CommandRunner : Object, Runner {
public void pause () {
}
+ public void stop () {
+ }
+
private void on_process_stopped () {
running = false;
stopped ();
diff --git a/src/core/runner.vala b/src/core/runner.vala
index 2f8a229..50f0e90 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -12,4 +12,5 @@ public interface Games.Runner : Object {
public abstract void start () throws Error;
public abstract void resume () throws Error;
public abstract void pause ();
+ public abstract void stop ();
}
diff --git a/src/dummy/dummy-runner.vala b/src/dummy/dummy-runner.vala
index a16b2c8..89cc0d5 100644
--- a/src/dummy/dummy-runner.vala
+++ b/src/dummy/dummy-runner.vala
@@ -28,4 +28,7 @@ private class Games.DummyRunner : Object, Runner {
public void pause () {
}
+
+ public void stop () {
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]