| Top |  |  |  |  | 
| GtdTask * | gtd_task_new () | 
| gboolean | gtd_task_get_complete () | 
| void | gtd_task_set_complete () | 
| GDateTime * | gtd_task_get_creation_date () | 
| const gchar * | gtd_task_get_description () | 
| void | gtd_task_set_description () | 
| GDateTime * | gtd_task_get_due_date () | 
| void | gtd_task_set_due_date () | 
| GtdTaskList * | gtd_task_get_list () | 
| void | gtd_task_set_list () | 
| gint | gtd_task_get_priority () | 
| void | gtd_task_set_priority () | 
| const gchar * | gtd_task_get_title () | 
| void | gtd_task_set_title () | 
| gint | gtd_task_compare () | 
A GtdTask is an object that represents a task. All GtdTasks must be inside a GtdTaskList.
gboolean
gtd_task_get_complete (GtdTask *task);
Retrieves whether the task is complete or not.
void gtd_task_set_complete (GtdTask *task,gboolean complete);
Updates the complete state of task
.
GDateTime *
gtd_task_get_creation_date (GtdTask *task);
Returns the GDateTime that represents the task's creation date.
The value is referenced for thread safety. Returns NULL if
no date is set.
const gchar *
gtd_task_get_description (GtdTask *task);
Retrieves the description of the task.
void gtd_task_set_description (GtdTask *task,const gchar *description);
Updates the description of task
. The string is not stripped off of
spaces to preserve user data.
GDateTime *
gtd_task_get_due_date (GtdTask *task);
Returns the GDateTime that represents the task's due date.
The value is referenced for thread safety. Returns NULL if
no date is set.
void gtd_task_set_due_date (GtdTask *task,GDateTime *dt);
Updates the internal GtdTask
::due-date property.
GtdTaskList *
gtd_task_get_list (GtdTask *task);
Returns a weak reference to the GtdTaskList that
owns the given task
.
a weak reference to the
GtdTaskList that owns task
. Do not free after
usage. 
[transfer none]
void gtd_task_set_list (GtdTask *task,GtdTaskList *list);
Sets the parent GtdTaskList of task
.
gint
gtd_task_get_priority (GtdTask *task);
Returns the priority of task
 inside the parent GtdTaskList,
or -1 if not set.
void gtd_task_set_priority (GtdTask *task,gint priority);
Sets the task
 priority inside the parent GtdTaskList. It
is up to the interface to handle two or more GtdTask with
the same priority value.
const gchar *
gtd_task_get_title (GtdTask *task);
Retrieves the title of the task, or NULL.
void gtd_task_set_title (GtdTask *task,const gchar *title);
Updates the title of task
. The string is stripped off of
leading spaces.
struct GtdTaskClass {
  GtdObjectClass parent;
  gboolean      (*get_complete)                       (GtdTask              *self);
  void          (*set_complete)                       (GtdTask              *self,
                                                       gboolean              complete);
  GDateTime*    (*get_creation_date)                  (GtdTask              *self);
  void          (*set_creation_date)                  (GtdTask              *self,
                                                       GDateTime            *dt);
  const gchar*  (*get_description)                    (GtdTask              *self);
  void          (*set_description)                    (GtdTask              *self,
                                                       const gchar          *description);
  GDateTime*    (*get_due_date)                       (GtdTask              *self);
  void          (*set_due_date)                       (GtdTask              *self,
                                                       GDateTime            *due_date);
  gint64        (*get_position)                       (GtdTask              *task);
  void          (*set_position)                       (GtdTask              *task,
                                                       gint64                position);
  gint32        (*get_priority)                       (GtdTask              *self);
  void          (*set_priority)                       (GtdTask              *self,
                                                       gint32                priority);
  const gchar*  (*get_title)                          (GtdTask              *self);
  void          (*set_title)                          (GtdTask              *self,
                                                       const gchar          *title);
  /*< signals >*/
  void          (*subtask_added)                      (GtdTask              *self,
                                                       GtdTask              *subtask);
  void          (*subtask_removed)                    (GtdTask              *self,
                                                       GtdTask              *subtask);
  gpointer       padding[6];
};
“complete” property“complete” gboolean
Whether the task is marked as completed by the user.
Flags: Read / Write
Default value: FALSE
“creation-date” property“creation-date” GDateTime *
The day the task was created.
Flags: Read / Write
“depth” property“depth” guint
The depth of the task inside the subtasks tree.
Flags: Read
Default value: 0
“description” property“description” gchar *
Optional string describing the task.
Flags: Read / Write
Default value: NULL
“due-date” property“due-date” GDateTime *
The day the task is supposed to be completed.
Flags: Read / Write
“position” property“position” gint64
The position of the task. -1 means no position, and tasks will be sorted alphabetically.
Flags: Read / Write
Allowed values: >= -1
Default value: 0
“priority” property“priority” gint
The priority of the task. 0 means no priority set, and tasks will be sorted alphabetically.
Flags: Read / Write
Allowed values: >= 0
Default value: 0