projects
/
fso-scripts.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8b834d7
)
fso-listen-for-calls.py: use SetFunctionality
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 15 Sep 2010 11:11:31 +0000
(13:11 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 15 Sep 2010 11:11:31 +0000
(13:11 +0200)
fso-listen-for-calls.py
patch
|
blob
|
history
diff --git
a/fso-listen-for-calls.py
b/fso-listen-for-calls.py
index
a0bc8f2
..
a2c3170
100755
(executable)
--- a/
fso-listen-for-calls.py
+++ b/
fso-listen-for-calls.py
@@
-27,10
+27,11
@@
def fso_listen_for_calls():
usage_iface.RequestResource("GSM")
gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd", "/org/freesmartphone/GSM/Device")
usage_iface.RequestResource("GSM")
gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd", "/org/freesmartphone/GSM/Device")
+ gsm_device_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Device")
gsm_call_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Call")
print "Set Functionality: full"
gsm_call_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Call")
print "Set Functionality: full"
- gsm_
network
_iface.SetFunctionality("full", True, "")
+ gsm_
device
_iface.SetFunctionality("full", True, "")
gsm_call_iface.connect_to_signal('CallStatus', onCallStatus)
gsm_call_iface.connect_to_signal('CallStatus', onCallStatus)
@@
-42,7
+43,7
@@
def fso_listen_for_calls():
print "Interrupted"
loop.quit()
print "Interrupted"
loop.quit()
- gsm_
network
_iface.SetFunctionality("minimal", True, "")
+ gsm_
device
_iface.SetFunctionality("minimal", True, "")
usage_iface.ReleaseResource("GSM")
if __name__ == "__main__":
usage_iface.ReleaseResource("GSM")
if __name__ == "__main__":