35 """DBus service of a 'Settings' instance."""
38 super(SettingsProxyDBusService, self).
__init__(object_path)
43 if settings
is not None:
45 self.
_group = settings._group
50 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
's', out_signature=
'av')
54 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
's', out_signature=
'as')
58 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
's', out_signature=
'as')
62 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
'ss', out_signature=
'b')
66 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
'ss', out_signature=
'')
70 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
'ssv', out_signature=
'')
75 @dbus.service.method(
'org.ros.qt_gui.Settings', in_signature=
'ssv', out_signature=
'v')
76 def value(self, group, key, default_value=None):
81 if isinstance(value, dbus.Boolean):
83 elif isinstance(value,
84 (dbus.Byte, dbus.Int16, dbus.Int32, dbus.Int64,
85 dbus.UInt16, dbus.UInt32, dbus.UInt64)):
87 elif isinstance(value, dbus.Double):
89 elif isinstance(value, dbus.String):
91 elif isinstance(value, dbus.UTF8String):
93 value = unicode(value)