aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/Makefile.am4
-rw-r--r--libindicate/indicator-message.c62
-rw-r--r--libindicate/indicator-message.h35
3 files changed, 100 insertions, 1 deletions
diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am
index 53cb273..e2aef39 100644
--- a/libindicate/Makefile.am
+++ b/libindicate/Makefile.am
@@ -18,6 +18,7 @@ libindicateincludedir=$(includedir)/libindicate-1.0/libindicate
indicate_headers = \
indicator.h \
+ indicator-message.h \
listener.h \
server.h
@@ -32,7 +33,8 @@ libindicate_la_SOURCES = \
listener.c \
listener-marshal.c \
listener-marshal.h \
- indicator.c
+ indicator.c \
+ indicator-message.c
libindicate_la_LDFLAGS = \
-version-info $(LIBINDICATE_CURRENT):$(LIBINDICATE_REVISION):$(LIBINDICATE_AGE) \
diff --git a/libindicate/indicator-message.c b/libindicate/indicator-message.c
new file mode 100644
index 0000000..3df7b4e
--- /dev/null
+++ b/libindicate/indicator-message.c
@@ -0,0 +1,62 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "indicator-message.h"
+
+typedef struct _IndicateIndicatorMessagePrivate IndicateIndicatorMessagePrivate;
+
+struct _IndicateIndicatorMessagePrivate
+{
+};
+
+#define INDICATE_INDICATOR_MESSAGE_GET_PRIVATE(o) \
+(G_TYPE_INSTANCE_GET_PRIVATE ((o), INDICATE_INDICATOR_MESSAGE_TYPE, IndicateIndicatorMessagePrivate))
+
+static void indicate_indicator_message_class_init (IndicateIndicatorMessageClass *klass);
+static void indicate_indicator_message_init (IndicateIndicatorMessage *self);
+static void indicate_indicator_message_dispose (GObject *object);
+static void indicate_indicator_message_finalize (GObject *object);
+static const gchar * get_indicator_type (IndicateIndicator * indicator);
+
+G_DEFINE_TYPE (IndicateIndicatorMessage, indicate_indicator_message, INDICATE_TYPE_INDICATOR);
+
+static void
+indicate_indicator_message_class_init (IndicateIndicatorMessageClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (IndicateIndicatorMessagePrivate));
+
+ object_class->dispose = indicate_indicator_message_dispose;
+ object_class->finalize = indicate_indicator_message_finalize;
+
+ IndicateIndicatorClass * indicator_class = INDICATE_INDICATOR_CLASS(klass);
+
+ indicator_class->get_type = get_indicator_type;
+
+ return;
+}
+
+static void
+indicate_indicator_message_init (IndicateIndicatorMessage *self)
+{
+}
+
+static void
+indicate_indicator_message_dispose (GObject *object)
+{
+G_OBJECT_CLASS (indicate_indicator_message_parent_class)->dispose (object);
+}
+
+static void
+indicate_indicator_message_finalize (GObject *object)
+{
+G_OBJECT_CLASS (indicate_indicator_message_parent_class)->finalize (object);
+}
+
+static const gchar *
+get_indicator_type (IndicateIndicator * indicator)
+{
+ return "message";
+}
diff --git a/libindicate/indicator-message.h b/libindicate/indicator-message.h
new file mode 100644
index 0000000..fb0c30d
--- /dev/null
+++ b/libindicate/indicator-message.h
@@ -0,0 +1,35 @@
+#ifndef __INDICATE_INDICATOR_MESSAGE_H__
+#define __INDICATE_INDICATOR_MESSAGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include "indicator.h"
+
+G_BEGIN_DECLS
+
+#define INDICATE_TYPE_INDICATOR_MESSAGE (indicator_message_get_type ())
+#define INDICATE_INDICATOR_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATE_TYPE_INDICATOR_MESSAGE, IndicateIndicatorMessage))
+#define INDICATE_INDICATOR_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATE_TYPE_INDICATOR_MESSAGE, IndicateIndicatorMessageClass))
+#define INDICATE_IS_INDICATOR_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INDICATE_TYPE_INDICATOR_MESSAGE))
+#define INDICATE_IS_INDICATOR_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATE_TYPE_INDICATOR_MESSAGE))
+#define INDICATE_INDICATOR_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATE_TYPE_INDICATOR_MESSAGE, IndicateIndicatorMessageClass))
+
+typedef struct _IndicateIndicatorMessage IndicateIndicatorMessage;
+typedef struct _IndicateIndicatorMessageClass IndicateIndicatorMessageClass;
+
+struct _IndicateIndicatorMessageClass
+{
+IndicateIndicatorClass parent_class;
+};
+
+struct _IndicateIndicatorMessage
+{
+IndicateIndicator parent;
+};
+
+GType indicate_indicator_message_get_type (void);
+
+G_END_DECLS
+
+#endif