phonesim: Fix call scripting capability
PATCH 1/1 phonesim: Fix call scripting capability
--- doc/scriptable.txt | 6 +++--- src/control.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-)
doc/scriptable.txt +3 -3
@@ -7,8 +7,8 @@ call, you have to do some operations manually within phonesim GUI). Below are several examples: 1. call.js (stand for incoming call and copy it to /tmp/call/) -tabRegistration.gbIncomingCall.leCaller.text = "12345"; -tabRegistration.gbIncomingCall.pbIncomingCall.click(); +tabCall.gbIncomingCall.leCaller.text = "12345"; +tabCall.gbIncomingCall.pbIncomingCall.click(); Then set the path of script and run the script with its name:
@@ -50,6 +50,6 @@ Reference" for details. For example, if you want to know the current incoming number, you may write a script as below: // number.js -tabRegistration.gbIncomingCall.leCaller.text +tabCall.gbIncomingCall.leCaller.text After running the script the similar way as above, you may get the number.
src/control.cpp +3 -0
@@ -667,6 +667,9 @@ Script::Script(QObject *obj, Ui_ControlBase *ui) : QDBusAbstractAdaptor(obj) QScriptValue qsTab8 = engine.newQObject(ui->tab_8); engine.globalObject().setProperty("tabPosition", qsTab8); + + QScriptValue qsTab9 = engine.newQObject(ui->tab_9); + engine.globalObject().setProperty("tabCall", qsTab9); } void Script::SetPath(const QString &path, const QDBusMessage &msg)
Signature · 1 line
1.7.1
Hi Frédéric,
Quoted 5 lines · Frédéric Danis
--- doc/scriptable.txt | 6 +++--- src/control.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-)
Patch has been applied, thanks.
Regards,
-Denis