Top | ![]() |
![]() |
![]() |
![]() |
GtdTaskList * | gtd_task_list_new () |
GdkRGBA * | gtd_task_list_get_color () |
void | gtd_task_list_set_color () |
gboolean | gtd_task_list_is_removable () |
void | gtd_task_list_set_is_removable () |
const gchar * | gtd_task_list_get_name () |
void | gtd_task_list_set_name () |
GtdProvider * | gtd_task_list_get_provider () |
void | gtd_task_list_set_provider () |
GList * | gtd_task_list_get_tasks () |
void | gtd_task_list_save_task () |
void | gtd_task_list_remove_task () |
gboolean | gtd_task_list_contains () |
GdkRGBA * | color | Read / Write |
gboolean | is-removable | Read / Write |
gchar * | name | Read / Write |
GtdProvider * | provider | Read / Write |
A GtdTaskList represents a task list, and contains a list of tasks, a color, a name and the provider who generated it.
GdkRGBA *
gtd_task_list_get_color (GtdTaskList *list
);
Retrieves the color of list
. It is guarantee that it always returns a
color, given a valid GtdTaskList.
void gtd_task_list_set_color (GtdTaskList *list
,const GdkRGBA *color
);
sets the color of list
.
void gtd_task_list_set_is_removable (GtdTaskList *list
,gboolean is_removable
);
Sets whether list
can be deleted or not.
const gchar *
gtd_task_list_get_name (GtdTaskList *list
);
Retrieves the user-visible name of list
, or NULL
.
void gtd_task_list_set_name (GtdTaskList *list
,const gchar *name
);
Sets the list
name to name
.
GtdProvider *
gtd_task_list_get_provider (GtdTaskList *list
);
Retrieves the GtdProvider who owns this list.
void gtd_task_list_set_provider (GtdTaskList *self
,GtdProvider *provider
);
Sets the provider of this tasklist.
GList *
gtd_task_list_get_tasks (GtdTaskList *list
);
Returns the list's tasks.
void gtd_task_list_save_task (GtdTaskList *list
,GtdTask *task
);
Adds or updates task
to list
if it's not already present.
void gtd_task_list_remove_task (GtdTaskList *list
,GtdTask *task
);
Removes task
from list
if it's inside the list.
gboolean gtd_task_list_contains (GtdTaskList *list
,GtdTask *task
);
Checks if task
is inside list
.
struct GtdTaskListClass { GtdObjectClass parent; void (*task_added) (GtdTaskList *list, GtdTask *task); void (*task_updated) (GtdTaskList *list, GtdTask *task); void (*task_removed) (GtdTaskList *list, GtdTask *task); gpointer padding[10]; };
“is-removable”
property“is-removable” gboolean
Whether the task list can be removed from the system.
Flags: Read / Write
Default value: FALSE
“provider”
property“provider” GtdProvider *
The provider that handles the list.
Flags: Read / Write
“task-added”
signalvoid user_function (GtdTaskList *list, GtdTask *task, gpointer user_data)
The ::task-added signal is emmited after a GtdTask is added to the list.
Flags: Run Last
“task-removed”
signalvoid user_function (GtdTaskList *list, GtdTask *task, gpointer user_data)
The ::task-removed signal is emmited after a GtdTask is removed from the list.
Flags: Run Last