2
An indicator to show information that is in messaging applications
3
that the user is using.
5
Copyright 2009 Canonical Ltd.
8
Ted Gould <ted@canonical.com>
10
This program is free software: you can redistribute it and/or modify it
11
under the terms of the GNU General Public License version 3, as published
12
by the Free Software Foundation.
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranties of
16
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
17
PURPOSE. See the GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License along
20
with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef __MESSAGE_SERVICE_DBUS_H__
24
#define __MESSAGE_SERVICE_DBUS_H__
27
#include <glib-object.h>
31
#define MESSAGE_SERVICE_DBUS_TYPE (message_service_dbus_get_type ())
32
#define MESSAGE_SERVICE_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbus))
33
#define MESSAGE_SERVICE_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbusClass))
34
#define IS_MESSAGE_SERVICE_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MESSAGE_SERVICE_DBUS_TYPE))
35
#define IS_MESSAGE_SERVICE_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MESSAGE_SERVICE_DBUS_TYPE))
36
#define MESSAGE_SERVICE_DBUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbusClass))
38
#define MESSAGE_SERVICE_DBUS_SIGNAL_ATTENTION_CHANGED "attention-changed"
39
#define MESSAGE_SERVICE_DBUS_SIGNAL_ICON_CHANGED "icon-changed"
41
typedef struct _MessageServiceDbus MessageServiceDbus;
42
typedef struct _MessageServiceDbusClass MessageServiceDbusClass;
44
struct _MessageServiceDbusClass {
45
GObjectClass parent_class;
47
void (*attention_changed) (gboolean dot);
48
void (*icon_changed) (gboolean hidden);
51
struct _MessageServiceDbus {
55
GType message_service_dbus_get_type (void);
56
MessageServiceDbus * message_service_dbus_new (void);
57
void message_service_dbus_set_attention (MessageServiceDbus * self, gboolean attention);
58
void message_service_dbus_set_icon (MessageServiceDbus * self, gboolean hidden);