User:Kagee

From Openmoko

Revision as of 23:24, 25 July 2009 by Kagee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
   org.freesmartphone.Usage

Method: ListResources ( ) → as

Description: List available resources. Returns as: resources

An array of resource names.

   cli-framework

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS']

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS'] >>> usageiface.GetResourcePolicy('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged 'auto' >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged Traceback (most recent call last):

 File "<console>", line 1, in <module>
 File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
   **keywords)
 File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
   message, timeout)

DBusException: org.freesmartphone.Usage.UserExists: User :1.25 already requested Bluetooth >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged True >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>>

Personal tools
   org.freesmartphone.Usage

Method: ListResources ( ) → as

Description: List available resources. Returns as: resources

An array of resource names.

   cli-framework

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS']

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS'] >>> usageiface.GetResourcePolicy('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged 'auto' >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged Traceback (most recent call last):

 File "<console>", line 1, in <module>
 File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
   **keywords)
 File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
   message, timeout)

DBusException: org.freesmartphone.Usage.UserExists: User :1.25 already requested Bluetooth >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged True >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>>