summaryrefslogtreecommitdiff
path: root/atspi/atspi-object.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2010-11-20 10:59:06 -0500
committerMike Gorse <mgorse@novell.com>2010-11-20 10:59:06 -0500
commit585683c4e828aaa1dbb883df9274d14753a58088 (patch)
treee3920da08c8ef8ead088e59314addf36f7e7394b /atspi/atspi-object.h
parent3f65b7902ce9f63a33c76bdc093e02ffa742a50a (diff)
downloadat-spi2-core-585683c4e828aaa1dbb883df9274d14753a58088.tar.gz
Add Hypertext and Hyperlink and some refactoring to support them
AtspiAccessible is now derived from a base class called AtspiObject which defines the object's application and object path, since this is common with AtspiHyperlink.
Diffstat (limited to 'atspi/atspi-object.h')
-rw-r--r--atspi/atspi-object.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/atspi/atspi-object.h b/atspi/atspi-object.h
new file mode 100644
index 00000000..b4dfa1f3
--- /dev/null
+++ b/atspi/atspi-object.h
@@ -0,0 +1,55 @@
+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2002 Ximian, Inc.
+ * 2002 Sun Microsystems Inc.
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _ATSPI_OBJECT_H_
+#define _ATSPI_OBJECT_H_
+
+#include "glib-object.h"
+
+#include "atspi-application.h"
+#include "atspi-types.h"
+
+#define ATSPI_TYPE_OBJECT (atspi_object_get_type ())
+#define ATSPI_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_OBJECT, AtspiObject))
+#define ATSPI_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_OBJECT, AtspiObjectClass))
+#define ATSPI_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_OBJECT))
+#define ATSPI_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_OBJECT))
+#define ATSPI_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_OBJECT, AtspiObjectClass))
+
+typedef struct _AtspiObject AtspiObject;
+struct _AtspiObject
+{
+ GObject parent;
+ AtspiApplication *app;
+ char *path;
+};
+
+typedef struct _AtspiObjectClass AtspiObjectClass;
+struct _AtspiObjectClass
+{
+ GObjectClass parent_class;
+};
+
+GType atspi_object_get_type (void);
+#endif /* _ATSPI_OBJECT_H_ */