From a1f7f7d2cd79c9391368d0c017452566a5edc44c Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 14 Nov 2016 11:43:46 +0100 Subject: afm-user-daemon: Adds method "once" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the method "once" that is intended to start an application in local mode if it doesn't already run. Returns the state of the running application. Change-Id: I4dfff06fa2d3e95f13a2436a2f1af9174799ddcf Signed-off-by: José Bollo --- docs/afm-user-daemon.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'docs/afm-user-daemon.md') diff --git a/docs/afm-user-daemon.md b/docs/afm-user-daemon.md index cb54b10..37cf0e4 100644 --- a/docs/afm-user-daemon.md +++ b/docs/afm-user-daemon.md @@ -398,7 +398,7 @@ user sessions. The **afm-user-daemon** is listening on destination name ***org.AGL.afm.user*** at object path ***/org/AGL/afm/user*** on interface ***org.AGL.afm.user*** for following members: - ***runnables***, ***detail***, ***start***, ***terminate***, + ***runnables***, ***detail***, ***start***, ***once***, ***terminate***, ***pause***, ***resume***, ***runners***, ***state***, ***install*** and ***uninstall***. @@ -464,6 +464,10 @@ Here is the summary of ***afm-util***: start an instance of the widget of id + - **afm-util once id **: + + run once an instance of the widget of id + - **afm-util terminate rid **: terminate the running instance rid @@ -634,6 +638,26 @@ The field "mode" is a string equal to either "local" or "remote". --- +#### Method org.AGL.afm.user.once + +**Description**: + +**Input**: the *id* of the application + +Either just a string: + + "appli@x.y" + +Or an object containing field "id" of type string. + + {"id":"appli@x.y"} + +**output**: The *state* of the application retrieved or launched. +See *org.AGL.afm.user.state* to get a description of the returned +object. + +--- + #### Method org.AGL.afm.user.terminate **Description**: Terminates the application attached to *runid*. -- cgit 1.2.3-korg