aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-28 14:57:38 -0500
committerTed Gould <ted@canonical.com>2009-10-28 14:57:38 -0500
commitecf44bf6a995071c7f0e5760dc3ed03542b993a0 (patch)
treedfcbf8e08d9714ea554b6522727eba381abee468 /src
parentec8cd6885a17a2a03fc65c89f6e10f3da42b59de (diff)
downloadayatana-indicator-application-ecf44bf6a995071c7f0e5760dc3ed03542b993a0.tar.gz
ayatana-indicator-application-ecf44bf6a995071c7f0e5760dc3ed03542b993a0.tar.bz2
ayatana-indicator-application-ecf44bf6a995071c7f0e5760dc3ed03542b993a0.zip
Adding an appstore object to hold all of our apps.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/custom-service-appstore.c57
-rw-r--r--src/custom-service-appstore.h31
3 files changed, 91 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index aace163..6f7e6e6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,9 @@ libexec_PROGRAMS = indicator-custom-service
indicator_custom_service_SOURCES = \
custom-service.c \
+ custom-service-appstore.h \
+ custom-service-appstore.c \
+ custom-service-server.h \
notification-item-client.h \
notification-watcher-server.h
indicator_custom_service_CFLAGS = \
diff --git a/src/custom-service-appstore.c b/src/custom-service-appstore.c
new file mode 100644
index 0000000..c1bc345
--- /dev/null
+++ b/src/custom-service-appstore.c
@@ -0,0 +1,57 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "custom-service-appstore.h"
+
+typedef struct _CustomServiceAppstorePrivate CustomServiceAppstorePrivate;
+
+struct _CustomServiceAppstorePrivate {
+ int demo;
+};
+
+#define CUSTOM_SERVICE_APPSTORE_GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstorePrivate))
+
+static void custom_service_appstore_class_init (CustomServiceAppstoreClass *klass);
+static void custom_service_appstore_init (CustomServiceAppstore *self);
+static void custom_service_appstore_dispose (GObject *object);
+static void custom_service_appstore_finalize (GObject *object);
+
+G_DEFINE_TYPE (CustomServiceAppstore, custom_service_appstore, G_TYPE_OBJECT);
+
+static void
+custom_service_appstore_class_init (CustomServiceAppstoreClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (CustomServiceAppstorePrivate));
+
+ object_class->dispose = custom_service_appstore_dispose;
+ object_class->finalize = custom_service_appstore_finalize;
+
+ return;
+}
+
+static void
+custom_service_appstore_init (CustomServiceAppstore *self)
+{
+
+ return;
+}
+
+static void
+custom_service_appstore_dispose (GObject *object)
+{
+
+ G_OBJECT_CLASS (custom_service_appstore_parent_class)->dispose (object);
+ return;
+}
+
+static void
+custom_service_appstore_finalize (GObject *object)
+{
+
+ G_OBJECT_CLASS (custom_service_appstore_parent_class)->finalize (object);
+ return;
+}
diff --git a/src/custom-service-appstore.h b/src/custom-service-appstore.h
new file mode 100644
index 0000000..48c9da9
--- /dev/null
+++ b/src/custom-service-appstore.h
@@ -0,0 +1,31 @@
+#ifndef __CUSTOM_SERVICE_APPSTORE_H__
+#define __CUSTOM_SERVICE_APPSTORE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define CUSTOM_SERVICE_APPSTORE_TYPE (custom_service_appstore_get_type ())
+#define CUSTOM_SERVICE_APPSTORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstore))
+#define CUSTOM_SERVICE_APPSTORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstoreClass))
+#define IS_CUSTOM_SERVICE_APPSTORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_SERVICE_APPSTORE_TYPE))
+#define IS_CUSTOM_SERVICE_APPSTORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_SERVICE_APPSTORE_TYPE))
+#define CUSTOM_SERVICE_APPSTORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_SERVICE_APPSTORE_TYPE, CustomServiceAppstoreClass))
+
+typedef struct _CustomServiceAppstore CustomServiceAppstore;
+typedef struct _CustomServiceAppstoreClass CustomServiceAppstoreClass;
+
+struct _CustomServiceAppstoreClass {
+ GObjectClass parent_class;
+};
+
+struct _CustomServiceAppstore {
+ GObject parent;
+};
+
+GType custom_service_appstore_get_type (void);
+
+G_END_DECLS
+
+#endif