2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001, 2002 Sun Microsystems Inc.,
6 * Copyright 2001, 2002 Ximian, Inc.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #ifndef SPI_ACCESSIBLE_H_
25 #define SPI_ACCESSIBLE_H_
27 #include <droute/droute.h>
28 #include <spi-common/spi-dbus.h>
29 #include <spi-common/spi-types.h>
35 Accessibility_Role spi_accessible_role_from_atk_role (AtkRole role);
37 void spi_initialize_accessible(DRouteData *data);
38 void spi_initialize_action(DRouteData *data);
39 void spi_initialize_application(DRouteData *data);
40 void spi_initialize_component(DRouteData *data);
41 void spi_initialize_document(DRouteData *data);
42 void spi_initialize_editabletext(DRouteData *data);
43 void spi_initialize_hyperlink(DRouteData *data);
44 void spi_initialize_hypertext(DRouteData *data);
45 void spi_initialize_image(DRouteData *data);
46 void spi_initialize_selection(DRouteData *data);
47 void spi_initialize_table(DRouteData *data);
48 void spi_initialize_text(DRouteData *data);
49 void spi_initialize_value(DRouteData *data);
50 void spi_initialize_introspectable(DRouteData *data);
51 void spi_dbus_initialize(DRouteData *data);
53 AtkObject *spi_dbus_get_object(const char *path);
54 gchar *spi_dbus_get_path(AtkObject *obj);
56 DBusMessage *spi_dbus_return_object(DBusMessage *message, AtkObject *obj, int unref);
57 dbus_bool_t spi_dbus_return_v_object(DBusMessageIter *iter, AtkObject *obj, int unref);
60 void spi_register_tree_object(DBusConnection *bus, const char *path);
62 dbus_bool_t spi_dbus_append_tree (DBusMessage * message, AtkObject * obj, DRouteData * data);
64 void spi_dbus_notify_change(AtkObject *obj, gboolean new, DRouteData *data);
65 void spi_dbus_notify_remove(AtkObject *obj, DRouteData *data);
66 gboolean spi_dbus_update_cache(DRouteData *data);
67 gboolean spi_dbus_object_is_known(AtkObject *obj);
71 #endif /* SPI_ACCESSIBLE_H_ */