1 #ifndef __GLADE_SIGNAL_H__
2 #define __GLADE_SIGNAL_H__
3 
4 #include <glib.h>
5 #include <gladeui/glade-signal-class.h>
6 #include <gladeui/glade-widget-adaptor.h>
7 
8 G_BEGIN_DECLS
9 
10 #define GLADE_TYPE_SIGNAL            (glade_signal_get_type())
11 #define GLADE_SIGNAL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_SIGNAL, GladeSignal))
12 #define GLADE_SIGNAL_KLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_SIGNAL, GladeSignalKlass))
13 #define GLADE_IS_SIGNAL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_SIGNAL))
14 #define GLADE_IS_SIGNAL_KLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_SIGNAL))
15 #define GLADE_SIGNAL_GET_KLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_SIGNAL, GladeSignalKlass))
16 
17 typedef struct _GladeSignal         GladeSignal;
18 typedef struct _GladeSignalKlass    GladeSignalKlass;
19 typedef struct _GladeSignalPrivate  GladeSignalPrivate;
20 
21 struct _GladeSignal {
22   GObject object;
23 
24   GladeSignalPrivate *priv;
25 };
26 
27 struct _GladeSignalKlass {
28   GObjectClass object_class;
29 
30   void   (* glade_reserved1)   (void);
31   void   (* glade_reserved2)   (void);
32   void   (* glade_reserved3)   (void);
33   void   (* glade_reserved4)   (void);
34 };
35 
36 
37 GType                 glade_signal_get_type            (void) G_GNUC_CONST;
38 
39 GladeSignal          *glade_signal_new                 (const GladeSignalClass *sig_class,
40 							const gchar        *handler,
41 							const gchar        *userdata,
42 							gboolean            after,
43 							gboolean            swapped);
44 GladeSignal          *glade_signal_clone               (const GladeSignal  *signal);
45 gboolean              glade_signal_equal               (const GladeSignal  *sig1,
46 							const GladeSignal  *sig2);
47 GladeSignal          *glade_signal_read                (GladeXmlNode       *node,
48                                                         GladeWidgetAdaptor *adaptor);
49 void                  glade_signal_write               (GladeSignal        *signal,
50 							GladeXmlContext    *context,
51 							GladeXmlNode       *node);
52 
53 G_CONST_RETURN gchar *glade_signal_get_name            (const GladeSignal  *signal);
54 G_CONST_RETURN GladeSignalClass *glade_signal_get_class (const GladeSignal * signal);
55 void                  glade_signal_set_detail          (GladeSignal        *signal,
56 							const gchar        *detail);
57 G_CONST_RETURN gchar *glade_signal_get_detail          (const GladeSignal  *signal);
58 void                  glade_signal_set_handler         (GladeSignal        *signal,
59 							const gchar        *handler);
60 G_CONST_RETURN gchar *glade_signal_get_handler         (const GladeSignal  *signal);
61 void                  glade_signal_set_userdata        (GladeSignal        *signal,
62 							const gchar        *userdata);
63 G_CONST_RETURN gchar *glade_signal_get_userdata        (const GladeSignal  *signal);
64 void                  glade_signal_set_after           (GladeSignal        *signal,
65 							gboolean            after);
66 gboolean              glade_signal_get_after           (const GladeSignal  *signal);
67 void                  glade_signal_set_swapped         (GladeSignal        *signal,
68 							gboolean            swapped);
69 gboolean              glade_signal_get_swapped         (const GladeSignal  *signal);
70 void                  glade_signal_set_support_warning (GladeSignal        *signal,
71 							const gchar        *support_warning);
72 G_CONST_RETURN gchar *glade_signal_get_support_warning (const GladeSignal  *signal);
73 
74 G_END_DECLS
75 
76 #endif /* __GLADE_SIGNAL_H__ */
77