source: globalnotifier.h @ 678a505c

release-1.10release-1.7release-1.8release-1.9
Last change on this file since 678a505c was f06baef, checked in by David Benjamin <davidben@mit.edu>, 15 years ago
Add a message received signal as well
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#ifndef __BARNOWL_GLOBAL_NOTIFIER_H__
2#define __BARNOWL_GLOBAL_NOTIFIER_H__
3
4#include <glib-object.h>
5#include "owl.h"
6
7G_BEGIN_DECLS
8
9#define OWL_TYPE_GLOBAL_NOTIFIER owl_global_notifier_get_type()
10
11#define OWL_GLOBAL_NOTIFIER(obj) \
12    (G_TYPE_CHECK_INSTANCE_CAST ((obj), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifier))
13
14#define OWL_GLOBAL_NOTIFIER_CLASS(klass) \
15    (G_TYPE_CHECK_CLASS_CAST ((klass), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifierClass))
16
17#define OWL_IS_GLOBAL_NOTIFIER(obj) \
18    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OWL_TYPE_GLOBAL_NOTIFIER))
19
20#define OWL_IS_GLOBAL_NOTIFIER_CLASS(klass) \
21    (G_TYPE_CHECK_CLASS_TYPE ((klass), OWL_TYPE_GLOBAL_NOTIFIER))
22
23#define OWL_GLOBAL_NOTIFIER_GET_CLASS(obj) \
24    (G_TYPE_INSTANCE_GET_CLASS ((obj), OWL_TYPE_GLOBAL_NOTIFIER, OwlGlobalNotifierClass))
25
26typedef struct _OwlGlobalNotifierClass OwlGlobalNotifierClass;
27
28struct _OwlGlobalNotifier {
29    GObject parent;
30    owl_global *g;
31};
32
33struct _OwlGlobalNotifierClass {
34    GObjectClass parent_class;
35};
36
37GType owl_global_notifier_get_type (void);
38
39OwlGlobalNotifier* owl_global_notifier_new(owl_global *g);
40
41void owl_global_notifier_emit_view_changed(OwlGlobalNotifier *gn);
42void owl_global_notifier_emit_message_received(OwlGlobalNotifier *gn, owl_message *msg);
43
44G_END_DECLS
45
46#endif /* __BARNOWL_GLOBAL_NOTIFIER_H__ */
Note: See TracBrowser for help on using the repository browser.