Package pyneo :: Module dbus_support
[frames] | no frames]

Module dbus_support

collected functions around dbus and constants used in pyneo.

Version: prototype

Author: M. Dietrich <mdt@pyneo.org>

Copyright: Copyright (c) 2008 M. Dietrich

License: GPLv3

Classes
  FeedContext
class used with the 'with' statement of python 2.5 and dbus methods with an response/error callback. the class enshures that in the end either the response or the error callback will be called. the error callback is called in case an exception is thrown.
Functions
 
InitBus(dbus_name=None, bus=None)
 
dedbustype(v)
dbus decorates all types with own dbus-types. this method de-dbus these types. if v is a map or list, the method is used recursily. also boolean False are mapped to None (dbus does not support a None type) and keys in maps are always translated to strings (not unicode).
 
dedbusmap(v)
dbus decorates all types with own dbus-types. this method de-dbus these types. if v is a map or list, the method is used recursily. also boolean False are mapped to None (dbus does not support a None type) and keys in maps are always translated to strings (not unicode).
 
url_from_obj_path(object_path)
 
url_from_dbus_obj(obj)
 
object_by_url(url, bus=None)
get an object by an url like dbus://<dbus connection name>/<object path> or file://<filesystem path>. the first variant gives a dbus object, the second an opened file.
 
print_all_names(bus)
 
list_all_interface_of_obj(bus=None, name=None, path=None, obj=None)
 
list_all_pathes_by_interface(bus, name, base, search_interface=None)
 
gendocs(bus)
 
main(bus, interface=None)
Variables
  __doc__ = 'collected functions around dbus and constants used ...
  Empty = False
  DCN_PYNEOD = 'org.pyneo.pyneod'
  DCN_GSM0710MUXD = 'org.pyneo.mux'
  DIN_AUTHORIZED = 'org.pyneo.Authorized'
  DIN_ENTRY = 'org.pyneo.Entry'
  DIN_IMAGELOOKUP = 'org.pyneo.ImageLookup'
  DIN_INTERNETPROVIDER = 'org.pyneo.InternetProvider'
  DIN_KEYRING = 'org.pyneo.KeyRing'
  DIN_LOCATION = 'org.pyneo.Location'
  DIN_MAP = 'org.pyneo.Map'
  DIN_MESSENGER = 'org.pyneo.Messenger'
  DIN_MUSIC = 'org.pyneo.Music'
  DIN_NETPROTOCOLS = 'org.pyneo.NetProtocols'
  DIN_NETWORK = 'org.pyneo.Network'
  DIN_NETWORK_DEVICE = 'org.pyneo.NetworkDevice'
  DIN_NOTIFY = 'org.pyneo.Notify'
  DIN_POWERED = 'org.pyneo.Powered'
  DIN_STORAGE = 'org.pyneo.Storage'
  DIN_SYSTEM = 'org.pyneo.System'
  DIN_TIMEPROVIDER = 'org.pyneo.TimeProvider'
  DIN_TIMETABLE = 'org.pyneo.Timetable'
  DIN_VOICE_CALL_INITIATOR = 'org.pyneo.VoiceCallInitiator'
  DIN_VOICE_CALL = 'org.pyneo.VoiceCall'
  DIN_VOLATILE_IMAGE = 'org.pyneo.VolatileImage'
  DIN_WIRELESS = 'org.pyneo.Wireless'
  __package__ = 'pyneo'
Variables Details

__doc__

Value:
'collected functions around dbus and constants used in pyneo.'