aboutsummaryrefslogtreecommitdiff
path: root/src/libcustomindicator/custom-indicator.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-16 12:33:31 -0500
committerTed Gould <ted@canonical.com>2009-10-16 12:33:31 -0500
commit1101075695054df49e96d815fec28b4e9ea0287a (patch)
treea7a95c7ff27339f3bcc338cf4db3f44b7c3927a3 /src/libcustomindicator/custom-indicator.h
parentb666cc1867e04d697f381fa8033803b9e7d0f61d (diff)
downloadlibayatana-appindicator-1101075695054df49e96d815fec28b4e9ea0287a.tar.gz
libayatana-appindicator-1101075695054df49e96d815fec28b4e9ea0287a.tar.bz2
libayatana-appindicator-1101075695054df49e96d815fec28b4e9ea0287a.zip
Building a basic prototype of the API for the lib.
Diffstat (limited to 'src/libcustomindicator/custom-indicator.h')
-rw-r--r--src/libcustomindicator/custom-indicator.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/libcustomindicator/custom-indicator.h b/src/libcustomindicator/custom-indicator.h
index 6e94d3f..9bdae11 100644
--- a/src/libcustomindicator/custom-indicator.h
+++ b/src/libcustomindicator/custom-indicator.h
@@ -13,6 +13,9 @@ G_BEGIN_DECLS
#define IS_CUSTOM_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_INDICATOR_TYPE))
#define CUSTOM_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_INDICATOR_TYPE, CustomIndicatorClass))
+typedef int custom_indicator_category_t;
+typedef int custom_indicator_status_t;
+
typedef struct _CustomIndicator CustomIndicator;
typedef struct _CustomIndicatorClass CustomIndicatorClass;
@@ -24,7 +27,30 @@ struct _CustomIndicator {
GObject parent;
};
-GType custom_indicator_get_type (void);
+/* GObject Stuff */
+GType custom_indicator_get_type (void);
+
+/* Set properties */
+void custom_indicator_set_id (CustomIndicator * ci,
+ const gchar * id);
+void custom_indicator_set_category (CustomIndicator * ci,
+ custom_indicator_category_t category);
+void custom_indicator_set_status (CustomIndicator * ci,
+ custom_indicator_status_t status);
+void custom_indicator_set_icon (CustomIndicator * ci,
+ const gchar * icon_name);
+void custom_indicator_set_attention_icon (CustomIndicator * ci,
+ const gchar * icon_name);
+void custom_indicator_set_menu (CustomIndicator * ci,
+ void * menu);
+
+/* Get properties */
+const gchar * custom_indicator_get_id (CustomIndicator * ci);
+custom_indicator_category_t custom_indicator_get_category (CustomIndicator * ci);
+custom_indicator_status_t custom_indicator_get_status (CustomIndicator * ci);
+const gchar * custom_indicator_get_icon (CustomIndicator * ci);
+const gchar * custom_indicator_get_attention_icon (CustomIndicator * ci);
+void * custom_indicator_get_menu (CustomIndicator * ci);
G_END_DECLS