Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:16

0001 /*
0002  * AT-SPI - Assistive Technology Service Provider Interface
0003  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
0004  *
0005  * Copyright 2002 Ximian, Inc.
0006  *           2002 Sun Microsystems Inc.
0007  *
0008  *
0009  * This library is free software; you can redistribute it and/or
0010  * modify it under the terms of the GNU Lesser General Public
0011  * License as published by the Free Software Foundation; either
0012  * version 2.1 of the License, or (at your option) any later version.
0013  *
0014  * This library is distributed in the hope that it will be useful,
0015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0017  * Lesser General Public License for more details.
0018  *
0019  * You should have received a copy of the GNU Lesser General Public
0020  * License along with this library; if not, write to the
0021  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0022  * Boston, MA 02110-1301, USA.
0023  */
0024 
0025 #ifndef _ATSPI_APPLICATION_H_
0026 #define _ATSPI_APPLICATION_H_
0027 
0028 #include <dbus/dbus.h>
0029 
0030 #include "atspi-accessible.h"
0031 #include "atspi-types.h"
0032 #include <sys/time.h>
0033 
0034 G_BEGIN_DECLS
0035 
0036 #define ATSPI_TYPE_APPLICATION (atspi_application_get_type ())
0037 #define ATSPI_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_APPLICATION, AtspiApplication))
0038 #define ATSPI_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_APPLICATION, AtspiAccessibleClass))
0039 #define ATSPI_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_APPLICATION))
0040 #define ATSPI_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_APPLICATION))
0041 #define ATSPI_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_APPLICATION, AtspiAccessibleClass))
0042 
0043 typedef struct _AtspiApplication AtspiApplication;
0044 struct _AtspiApplication
0045 {
0046   GObject parent;
0047   GHashTable *hash;
0048   char *bus_name;
0049   DBusConnection *bus;
0050   struct _AtspiAccessible *root;
0051   AtspiCache cache;
0052   gchar *toolkit_name;
0053   gchar *toolkit_version;
0054   gchar *atspi_version;
0055   struct timeval time_added;
0056 };
0057 
0058 typedef struct _AtspiApplicationClass AtspiApplicationClass;
0059 struct _AtspiApplicationClass
0060 {
0061   GObjectClass parent_class;
0062 };
0063 
0064 AtspiApplication *
0065 _atspi_application_new (const char *bus_name);
0066 
0067 GType atspi_application_get_type (void);
0068 
0069 G_END_DECLS
0070 
0071 #endif /* _ATSPI_APPLICATION_H_ */