2008-05-16 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / registryd / desktop.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001, 2002 Sun Microsystems Inc.,
6  * Copyright 2001, 2002 Ximian, Inc.
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 SPI_DESKTOP_H_
25 #define SPI_DESKTOP_H_
26
27 #include <glib-object.h>
28
29 G_BEGIN_DECLS
30
31 #define SPI_DESKTOP_TYPE        (spi_desktop_get_type ())
32 #define SPI_DESKTOP(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), SPI_DESKTOP_TYPE, SpiDesktop))
33 #define SPI_DESKTOP_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), SPI_DESKTOP_TYPE, SpiDesktopClass))
34 #define SPI_IS_DESKTOP(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), SPI_DESKTOP_TYPE))
35 #define SPI_IS_DESKTOP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SPI_DESKTOP_TYPE))
36
37 typedef struct {
38         GObject parent;
39         GList        *applications;
40 } SpiDesktop;
41
42 typedef struct {
43         GObjectClass parent_class;
44         /*Signals */
45         void (*application_added) (SpiDesktop *desktop,
46                                    guint index);
47         void (*application_removed) (SpiDesktop *desktop,
48                                      guint index);
49 } SpiDesktopClass;
50
51 GType       spi_desktop_get_type           (void);
52 SpiDesktop *spi_desktop_new                (void);
53 void        spi_desktop_add_application    (SpiDesktop *desktop,
54                                             const char *app_path);
55 void        spi_desktop_remove_application (SpiDesktop *desktop,
56                                             const char *app_path);
57
58 G_END_DECLS
59
60 #endif /* SPI_DESKTOP_H_ */