aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client/topmenu-monitor.h
blob: afd066ce53cf6b18045f8c10a1933c70469dc1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _TOPMENU_MONITOR_H_
#define _TOPMENU_MONITOR_H_

#include <glib-object.h>

G_BEGIN_DECLS

#define TOPMENU_TYPE_MONITOR           topmenu_monitor_get_type()
#define TOPMENU_MONITOR(obj)           (G_TYPE_CHECK_INSTANCE_CAST((obj), TOPMENU_TYPE_MONITOR, TopMenuMonitor))
#define TOPMENU_IS_MONITOR(obj)        (G_TYPE_CHECK_INSTANCE_TYPE((obj), TOPMENU_TYPE_MONITOR))
#define TOPMENU_MONITOR_CLASS(c)       (G_TYPE_CHECK_CLASS_CAST((c), TOPMENU_TYPE_MONITOR, TopMenuMonitorClass))
#define TOPMENU_IS_MONITOR_CLASS(c)    (G_TYPE_CHECK_CLASS_TYPE((c), TOPMENU_TYPE_MONITOR))
#define TOPMENU_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TOPMENU_TYPE_MONITOR, TopMenuMonitorClass))

typedef struct _TopMenuMonitor        TopMenuMonitor;
typedef struct _TopMenuMonitorClass   TopMenuMonitorClass;
typedef struct _TopMenuMonitorPrivate TopMenuMonitorPrivate;

struct _TopMenuMonitor
{
	GObject parent_instance;
	TopMenuMonitorPrivate *priv;
	gboolean available;
};

struct _TopMenuMonitorClass
{
	GObjectClass parent_class;
};

GType topmenu_monitor_get_type(void);

TopMenuMonitor * topmenu_monitor_get_instance(void);

gboolean topmenu_monitor_is_topmenu_available(TopMenuMonitor * self);

G_END_DECLS

#endif /* _TOPMENU_MONITOR_H_ */