2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001 Sun Microsystems Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
25 * AccessibleApplication function prototypes
29 #include <cspi/spi-private.h>
32 * AccessibleApplication_ref:
33 * @obj: a pointer to the #AccessibleApplication on which to operate.
35 * Increment the reference count for an #AccessibleApplication.
38 AccessibleApplication_ref (AccessibleApplication *obj)
40 cspi_object_ref (obj);
44 * AccessibleApplication_unref:
45 * @obj: a pointer to the #AccessibleApplication object on which to operate.
47 * Decrement the reference count for an #AccessibleApplication.
50 AccessibleApplication_unref (AccessibleApplication *obj)
52 cspi_object_unref (obj);
56 * AccessibleApplication_getToolkitName:
57 * @obj: a pointer to the #AccessibleApplication to query.
59 * Get the name of the UI toolkit used by an #AccessibleApplication.
61 * Returns: a UTF-8 string indicating which UI toolkit is
62 * used by an application.
65 AccessibleApplication_getToolkitName (AccessibleApplication *obj)
69 cspi_return_val_if_fail (obj != NULL, NULL);
72 Accessibility_Application__get_toolkitName (CSPI_OBJREF (obj),
75 cspi_return_val_if_ev ("toolkitName", NULL);
81 * AccessibleApplication_getVersion:
82 * @obj: a pointer to the #AccessibleApplication being queried.
84 * Get the version of the at-spi bridge exported by an
85 * #AccessibleApplication instance.
87 * Returns: a UTF-8 string indicating the application's
91 AccessibleApplication_getVersion (AccessibleApplication *obj)
95 cspi_return_val_if_fail (obj != NULL, NULL);
98 Accessibility_Application__get_version (CSPI_OBJREF (obj),
101 cspi_return_val_if_ev ("getVersion", NULL);
107 * AccessibleApplication_getID:
108 * @obj: a pointer to the #AccessibleApplication being queried.
110 * Get the unique ID assigned by the Registry to an
111 * #AccessibleApplication instance.
112 * (Not Yet Implemented by the registry).
114 * Returns: a unique #long integer associated with the application
115 * by the Registry, or 0 if the application is not registered.
118 AccessibleApplication_getID (AccessibleApplication *obj)
122 cspi_return_val_if_fail (obj != NULL, 0);
124 retval = Accessibility_Application__get_id (CSPI_OBJREF (obj),
127 cspi_return_val_if_ev ("get_id", 0);
133 * AccessibleApplication_pause:
134 * @obj: a pointer to the #Accessible object on which to operate.
136 * Attempt to pause the application (used when client event queue is
138 * Not Yet Implemented.
140 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
144 AccessibleApplication_pause (AccessibleApplication *obj)
150 * AccessibleApplication_resume:
151 * @obj: a pointer to the #Accessible object on which to operate.
153 * Attempt to resume the application (used after #AccessibleApplication_pause).
154 * Not Yet Implemented.
156 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
160 AccessibleApplication_resume (AccessibleApplication *obj)