|
Packit |
130fc8 |
"""\
|
|
Packit |
130fc8 |
Implements the public API for a D-Bus client. See the dbus.service module
|
|
Packit |
130fc8 |
to export objects or claim well-known names.
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
..
|
|
Packit |
130fc8 |
for epydoc's benefit
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
:NewField SupportedUsage: Supported usage
|
|
Packit |
130fc8 |
:NewField Constructor: Constructor
|
|
Packit |
130fc8 |
"""
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# Copyright (C) 2003, 2004, 2005, 2006 Red Hat Inc. <http://www.redhat.com/>
|
|
Packit |
130fc8 |
# Copyright (C) 2003 David Zeuthen
|
|
Packit |
130fc8 |
# Copyright (C) 2004 Rob Taylor
|
|
Packit |
130fc8 |
# Copyright (C) 2005, 2006 Collabora Ltd. <http://www.collabora.co.uk/>
|
|
Packit |
130fc8 |
#
|
|
Packit |
130fc8 |
# Permission is hereby granted, free of charge, to any person
|
|
Packit |
130fc8 |
# obtaining a copy of this software and associated documentation
|
|
Packit |
130fc8 |
# files (the "Software"), to deal in the Software without
|
|
Packit |
130fc8 |
# restriction, including without limitation the rights to use, copy,
|
|
Packit |
130fc8 |
# modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
Packit |
130fc8 |
# of the Software, and to permit persons to whom the Software is
|
|
Packit |
130fc8 |
# furnished to do so, subject to the following conditions:
|
|
Packit |
130fc8 |
#
|
|
Packit |
130fc8 |
# The above copyright notice and this permission notice shall be
|
|
Packit |
130fc8 |
# included in all copies or substantial portions of the Software.
|
|
Packit |
130fc8 |
#
|
|
Packit |
130fc8 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
130fc8 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit |
130fc8 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
Packit |
130fc8 |
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
Packit |
130fc8 |
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
Packit |
130fc8 |
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
Packit |
130fc8 |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
Packit |
130fc8 |
# DEALINGS IN THE SOFTWARE.
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
__all__ = [
|
|
Packit |
130fc8 |
# from _dbus
|
|
Packit |
130fc8 |
'Bus', 'SystemBus', 'SessionBus', 'StarterBus',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# from proxies
|
|
Packit |
130fc8 |
'Interface',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# from _dbus_bindings
|
|
Packit |
130fc8 |
'get_default_main_loop', 'set_default_main_loop',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
'validate_interface_name', 'validate_member_name',
|
|
Packit |
130fc8 |
'validate_bus_name', 'validate_object_path',
|
|
Packit |
130fc8 |
'validate_error_name',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
'BUS_DAEMON_NAME', 'BUS_DAEMON_PATH', 'BUS_DAEMON_IFACE',
|
|
Packit |
130fc8 |
'LOCAL_PATH', 'LOCAL_IFACE', 'PEER_IFACE',
|
|
Packit |
130fc8 |
'INTROSPECTABLE_IFACE', 'PROPERTIES_IFACE',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
'ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean',
|
|
Packit |
130fc8 |
'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64',
|
|
Packit |
130fc8 |
'Double', 'String', 'Array', 'Struct', 'Dictionary',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# from exceptions
|
|
Packit |
130fc8 |
'DBusException',
|
|
Packit |
130fc8 |
'MissingErrorHandlerException', 'MissingReplyHandlerException',
|
|
Packit |
130fc8 |
'ValidationException', 'IntrospectionParserException',
|
|
Packit |
130fc8 |
'UnknownMethodException', 'NameExistsException',
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# submodules
|
|
Packit |
130fc8 |
'service', 'mainloop', 'lowlevel'
|
|
Packit |
130fc8 |
]
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
from dbus._compat import is_py2
|
|
Packit |
130fc8 |
if is_py2:
|
|
Packit |
130fc8 |
__all__.append('UTF8String')
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
__docformat__ = 'restructuredtext'
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
# OLPC Sugar compatibility
|
|
Packit |
130fc8 |
import dbus.exceptions as exceptions
|
|
Packit |
130fc8 |
import dbus.types as types
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
from _dbus_bindings import __version__
|
|
Packit |
130fc8 |
version = tuple(map(int, __version__.split('.')))
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
from _dbus_bindings import (
|
|
Packit |
130fc8 |
get_default_main_loop, set_default_main_loop, validate_bus_name,
|
|
Packit |
130fc8 |
validate_error_name, validate_interface_name, validate_member_name,
|
|
Packit |
130fc8 |
validate_object_path)
|
|
Packit |
130fc8 |
from _dbus_bindings import (
|
|
Packit |
130fc8 |
BUS_DAEMON_IFACE, BUS_DAEMON_NAME, BUS_DAEMON_PATH, INTROSPECTABLE_IFACE,
|
|
Packit |
130fc8 |
LOCAL_IFACE, LOCAL_PATH, PEER_IFACE, PROPERTIES_IFACE)
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
from dbus.exceptions import (
|
|
Packit |
130fc8 |
DBusException, IntrospectionParserException, MissingErrorHandlerException,
|
|
Packit |
130fc8 |
MissingReplyHandlerException, NameExistsException, UnknownMethodException,
|
|
Packit |
130fc8 |
ValidationException)
|
|
Packit |
130fc8 |
from _dbus_bindings import (
|
|
Packit |
130fc8 |
Array, Boolean, Byte, ByteArray, Dictionary, Double, Int16, Int32, Int64,
|
|
Packit |
130fc8 |
ObjectPath, Signature, String, Struct, UInt16, UInt32, UInt64)
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
if is_py2:
|
|
Packit |
130fc8 |
from _dbus_bindings import UTF8String
|
|
Packit |
130fc8 |
|
|
Packit |
130fc8 |
from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
|
|
Packit |
130fc8 |
from dbus.proxies import Interface
|