jana r742 - in trunk: . libjana
- From: rbradford svn gnome org
- To: svn-commits-list gnome org
- Subject: jana r742 - in trunk: . libjana
- Date: Wed, 18 Mar 2009 20:46:12 +0000 (UTC)
Author: rbradford
Date: Wed Mar 18 20:46:12 2009
New Revision: 742
URL: http://svn.gnome.org/viewvc/jana?rev=742&view=rev
Log:
2009-03-18 Rob Bradford <rob linux intel com>
* libjana/jana-task.c (jana_task_get_summary),
(jana_task_get_description), (jana_task_get_completed),
(jana_task_get_due_date), (jana_task_get_priority),
(jana_task_set_summary), (jana_task_set_description),
(jana_task_set_completed), (jana_task_set_due_date),
(jana_task_set_priority):
* libjana/jana-task.h:
Fill out the JanaTask interface with some function pointers for task
functionality and implement functions to uses these vfuncs.
Modified:
trunk/ChangeLog
trunk/libjana/jana-task.c
trunk/libjana/jana-task.h
Modified: trunk/libjana/jana-task.c
==============================================================================
--- trunk/libjana/jana-task.c (original)
+++ trunk/libjana/jana-task.c Wed Mar 18 20:46:12 2009
@@ -57,3 +57,63 @@
return type;
}
+gchar *
+jana_task_get_summary (JanaTask *self)
+{
+ return JANA_TASK_GET_INTERFACE (self)->get_summary (self);
+}
+
+gchar *
+jana_task_get_description (JanaTask *self)
+{
+ return JANA_TASK_GET_INTERFACE (self)->get_description (self);
+}
+
+gboolean
+jana_task_get_completed (JanaTask *self)
+{
+ return JANA_TASK_GET_INTERFACE (self)->get_completed (self);
+}
+
+JanaTime *
+jana_task_get_due_date (JanaTask *self)
+{
+ return JANA_TASK_GET_INTERFACE (self)->get_due_date (self);
+}
+
+gint
+jana_task_get_priority (JanaTask *self)
+{
+ return JANA_TASK_GET_INTERFACE (self)->get_priority (self);
+}
+
+void
+jana_task_set_summary (JanaTask *self, const gchar *summary)
+{
+ JANA_TASK_GET_INTERFACE (self)->set_summary (self, summary);
+}
+
+void
+jana_task_set_description (JanaTask *self, const gchar *description)
+{
+ JANA_TASK_GET_INTERFACE (self)->set_description (self, description);
+}
+
+void
+jana_task_set_completed (JanaTask *self, gboolean completed)
+{
+ JANA_TASK_GET_INTERFACE (self)->set_completed (self, completed);
+}
+
+void
+jana_task_set_due_date (JanaTask *self, JanaTime *time)
+{
+ JANA_TASK_GET_INTERFACE (self)->set_due_date (self, time);
+}
+
+void
+jana_task_set_priority (JanaTask *self, gint priority)
+{
+ JANA_TASK_GET_INTERFACE (self)->set_priority (self, priority);
+}
+
Modified: trunk/libjana/jana-task.h
==============================================================================
--- trunk/libjana/jana-task.h (original)
+++ trunk/libjana/jana-task.h Wed Mar 18 20:46:12 2009
@@ -22,6 +22,7 @@
#define JANA_TASK_H
#include <glib-object.h>
+#include <libjana/jana-time.h>
#define JANA_TYPE_TASK (jana_task_get_type ())
#define JANA_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
@@ -41,9 +42,33 @@
struct _JanaTaskInterface {
GTypeInterface parent;
+
+ gchar * (*get_summary) (JanaTask *self);
+ gchar * (*get_description) (JanaTask *self);
+ gboolean (*get_completed) (JanaTask *self);
+ JanaTime * (*get_due_date) (JanaTask *self);
+ gint (*get_priority) (JanaTask *self);
+
+ void (*set_summary) (JanaTask *self, const gchar *summary);
+ void (*set_description) (JanaTask *self, const gchar *description);
+ void (*set_completed) (JanaTask *self, gboolean completed);
+ void (*set_due_date) (JanaTask *self, JanaTime *time);
+ void (*set_priority) (JanaTask *self, gint priority);
};
GType jana_task_get_type (void);
+gchar * jana_task_get_summary (JanaTask *self);
+gchar * jana_task_get_description (JanaTask *self);
+gboolean jana_task_get_completed (JanaTask *self);
+JanaTime * jana_task_get_due_date (JanaTask *self);
+gint jana_task_get_priority (JanaTask *self);
+
+void jana_task_set_summary (JanaTask *self, const gchar *summary);
+void jana_task_set_description (JanaTask *self, const gchar *description);
+void jana_task_set_completed (JanaTask *self, gboolean completed);
+void jana_task_set_due_date (JanaTask *self, JanaTime *time);
+void jana_task_set_priority (JanaTask *self, gint priority);
+
#endif /* JANA_TASK_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]