/* Below line for testing -- it should be removed once at-spi-registryd is working */
if (dbus_bus_request_name(ad->droute.bus, "test.atspi.tree", 0, &error)) printf("Got test name.\n");
spi_register_tree_object(ad->droute.bus, &ad->droute, "/org/freedesktop/atspi/tree");
- if (!dbus_connection_try_register_fallback (ad->droute.bus, "/org/freedesktop/atspi/accessible/", &droute_vtable, &ad->droute, &error))
+ if (!dbus_connection_try_register_fallback (ad->droute.bus, "/org/freedesktop/atspi/accessible", &droute_vtable, &ad->droute, &error))
{
g_warning("Couldn't register droute.\n");
}
g_string_append_printf(output, spi_introspection_node_element, path);
+ spi_append_interface(output, "org.freedesktop.atspi.Accessible");
+
if (ATK_IS_ACTION (object))
spi_append_interface(output, "org.freedesktop.atspi.Action");
void
spi_initialize_introspectable (DRouteData *data, DRouteGetDatumFunction verify_object)
{
- droute_add_interface (data, "org.freedesktop.atspi.Introspectable",
+ droute_add_interface (data, "org.freedesktop.DBus.Introspectable",
methods, NULL,
verify_object, NULL);
};
from dbus.proxies import Interface, ProxyObject
ATSPI_ACCESSIBLE = 'org.freedesktop.atspi.Accessible'
-ATSPI_ACCESSIBLE_TREE = 'org.freedesktop.atspi.Tree'
+ATSPI_ACTION = 'org.freedesktop.atspi.Action'
+ATSPI_APPLICATION = 'org.freedesktop.atspi.Application'
+ATSPI_COMPONENT = 'org.freedesktop.atspi.Component'
+ATSPI_DEVICE_EVENT_CONTROLLER = 'org.freedesktop.atspi.DeviceEventController'
+ATSPI_DEVICE_EVENT_LISTENER = 'org.freedesktop.atspi.DeviceEventListener'
+ATSPI_DOCUMENT = 'org.freedesktop.atspi.Document'
+ATSPI_EDITABLE_TEXT = 'org.freedesktop.atspi.EditableText'
+ATSPI_HYPERLINK = 'org.freedesktop.atspi.Hyperlink'
+ATSPI_HYPERTEXT = 'org.freedesktop.atspi.Hypertext'
+ATSPI_IMAGE = 'org.freedesktop.atspi.Image'
+ATSPI_LOGIN_HELPER = 'org.freedesktop.atspi.LoginHelper'
+ATSPI_REGISTRY = 'org.freedesktop.atspi.Registry'
+ATSPI_SELECTION = 'org.freedesktop.atspi.Selection'
+ATSPI_SELECTOR = 'org.freedesktop.atspi.Selector'
+ATSPI_STREAMABLE_CONTENT = 'org.freedesktop.atspi.Content'
+ATSPI_TABLE = 'org.freedesktop.atspi.Table'
+ATSPI_TEXT = 'org.freedesktop.atspi.Text'
+ATSPI_TREE = 'org.freedesktop.atspi.Tree'
+ATSPI_VALUE = 'org.freedesktop.atspi.Value'
+
+DBUS_INTROSPECTABLE = 'org.freedesktop.DBus.Introspectable'
class AccessibleObjectDoesNotExist(Exception):
pass
self._connection = connection
self._busName = busName
- self._accessibleStore = dbus.Interface(storeObject, ATSPI_ACCESSIBLE_TREE)
+ self._accessibleStore = dbus.Interface(storeObject, ATSPI_TREE)
self._objects = {}
#TODO are we caching the root accessible or not?
#Do we need a roundtrip to access this?