The whole thing is easily done using some dbus functionality that is available from running services.
To initiate a new connection:
dbus-send --system --print-reply --type=method_call \
--dest=com.nokia.icd \
/com/nokia/icd com.nokia.icd.connect \
string:"Connection Name" uint32:0
Where "Connection Name" is the connection name as it is listed in the UI when selecting where to connect to. It can be a wireless connection, a GPRS connection via bluetooth, a PAN connection or whetever will be supported in the future.
To terminate the connection:
dbus-send --system \
--dest=com.nokia.icd \
/com/nokia/icd_ui com.nokia.icd_ui.disconnect \
boolean:true
No comments:
Post a Comment