eb385645cd50015540a64acd4ae7d01e72748321
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / object.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2008 Novell, Inc.
6  * Copyright 2008, 2009, 2010 Codethink Ltd.
7  *
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.
12  *
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.
17  *
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.
22  */
23
24 #ifndef ACCESSIBLE_OBJECT_H
25 #define ACCESSIBLE_OBJECT_H
26
27 #include <atk/atk.h>
28 #include <dbus/dbus.h>
29
30 void
31 spi_object_lease_if_needed (GObject *obj);
32
33 void
34 spi_object_append_reference (DBusMessageIter * iter, AtkObject * obj);
35
36 void
37 spi_hyperlink_append_reference (DBusMessageIter * iter, AtkObject * obj);
38
39 void
40 spi_object_append_v_reference (DBusMessageIter * iter, AtkObject * obj);
41
42 void
43 spi_object_append_desktop_reference (DBusMessageIter * iter);
44
45 void
46 spi_object_append_null_reference (DBusMessageIter * iter);
47
48 DBusMessage *
49 spi_object_return_reference (DBusMessage * msg, AtkObject * obj, gboolean unref);
50
51 DBusMessage *
52 spi_hyperlink_return_reference (DBusMessage * msg, AtkHyperlink * obj);
53
54 void
55 spi_object_append_interfaces (DBusMessageIter * iter, AtkObject * obj);
56
57 void
58 spi_object_append_attribute_set (DBusMessageIter * iter, AtkAttributeSet * attr);
59
60 Accessibility_Role
61 spi_accessible_role_from_atk_role (AtkRole role);
62
63 #endif /* ACCESSIBLE_OBJECT_H */