Package dbus :: Module proxies :: Class Interface
[hide private]
[frames] | no frames]

Class Interface

source code

object --+
         |
        Interface

An interface into a remote object.

An Interface can be used to wrap ProxyObjects so that calls can be routed to their correct D-Bus interface.



Instance Methods [hide private]
 
__init__(self, object, dbus_interface)
Construct a proxy for the given interface on the given object.
source code
 
connect_to_signal(self, signal_name, handler_function, dbus_interface=None, **keywords)
Arrange for a function to be called when the given signal is emitted.
source code
 
__getattr__(self, member) source code
 
get_dbus_method(self, member, dbus_interface=None)
Return a proxy method representing the given D-Bus method.
source code
 
__repr__(self)
str(x)
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]
  object_path
The D-Bus object path of the underlying object
  __dbus_object_path__
The D-Bus object path of the underlying object
  bus_name
The bus name to which the underlying proxy object is bound
  requested_bus_name
The bus name which was requested when the underlying object was created
  proxy_object
The underlying proxy object
  dbus_interface
The D-Bus interface represented

Inherited from object: __class__

Method Details [hide private]

__init__(self, object, dbus_interface)
(Constructor)

source code 
Construct a proxy for the given interface on the given object.
Parameters:
Overrides: object.__init__

connect_to_signal(self, signal_name, handler_function, dbus_interface=None, **keywords)

source code 

Arrange for a function to be called when the given signal is emitted.

The parameters and keyword arguments are the same as for dbus.proxies.ProxyObject.connect_to_signal, except that if dbus_interface is None (the default), the D-Bus interface that was passed to the Interface constructor is used.

get_dbus_method(self, member, dbus_interface=None)

source code 

Return a proxy method representing the given D-Bus method.

This is the same as dbus.proxies.ProxyObject.get_dbus_method except that if dbus_interface is None (the default), the D-Bus interface that was passed to the Interface constructor is used.

__repr__(self)
(Representation operator)

source code 
str(x)
Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

object_path

The D-Bus object path of the underlying object
Get Method:
unreachable.<lambda>(self)

__dbus_object_path__

The D-Bus object path of the underlying object
Get Method:
unreachable.<lambda>(self)

bus_name

The bus name to which the underlying proxy object is bound
Get Method:
unreachable.<lambda>(self)

requested_bus_name

The bus name which was requested when the underlying object was created
Get Method:
unreachable.<lambda>(self)

proxy_object

The underlying proxy object
Get Method:
unreachable.<lambda>(self)

dbus_interface

The D-Bus interface represented
Get Method:
unreachable.<lambda>(self)