2 Implements the public API for a D-Bus client. See the dbus.service module
3 to export objects or claim well-known names.
8 :NewField SupportedUsage: Supported usage
9 :NewField Constructor: Constructor
12 # Copyright (C) 2003, 2004, 2005, 2006 Red Hat Inc. <http://www.redhat.com/>
13 # Copyright (C) 2003 David Zeuthen
14 # Copyright (C) 2004 Rob Taylor
15 # Copyright (C) 2005, 2006 Collabora Ltd. <http://www.collabora.co.uk/>
17 # Licensed under the Academic Free License version 2.1
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37 'Bus', 'SystemBus', 'SessionBus', 'StarterBus',
41 'get_default_main_loop', 'set_default_main_loop',
43 'validate_interface_name', 'validate_member_name',
44 'validate_bus_name', 'validate_object_path',
45 'validate_error_name',
49 'ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean',
50 'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64',
51 'Double', 'String', 'Array', 'Struct', 'Dictionary', 'UTF8String',
54 'MissingErrorHandlerException', 'MissingReplyHandlerException',
55 'ValidationException', 'IntrospectionParserException',
56 'UnknownMethodException', 'NameExistsException',
59 'service', 'mainloop', 'lowlevel'
61 __docformat__
= 'restructuredtext'
64 from dbus
._version
import version
, __version__
68 # OLPC Sugar compatibility
69 import dbus
.exceptions
as exceptions
70 import dbus
.types
as types
72 from _dbus_bindings
import get_default_main_loop
, set_default_main_loop
,\
73 validate_interface_name
, validate_member_name
,\
74 validate_bus_name
, validate_object_path
,\
76 from _dbus_bindings
import DBusException
77 from dbus
.exceptions
import MissingErrorHandlerException
, \
78 MissingReplyHandlerException
, \
79 ValidationException
, \
80 IntrospectionParserException
, \
81 UnknownMethodException
, \
83 from _dbus_bindings
import ObjectPath
, ByteArray
, Signature
, Byte
, Boolean
,\
84 Int16
, UInt16
, Int32
, UInt32
, Int64
, UInt64
,\
85 Double
, String
, Array
, Struct
, Dictionary
, \
87 from dbus
._dbus
import Bus
, SystemBus
, SessionBus
, StarterBus
, Interface
90 if 'DBUS_PYTHON_NO_DEPRECATED' not in os
.environ
:
91 from dbus
._dbus
import dbus_bindings
# for backwards compat