3 * Evolution calendar - Data model for ETable
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) version 3.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with the program; if not, see <http://www.gnu.org/licenses/>
20 * Rodrigo Moya <rodrigo@ximian.com>
22 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
26 #ifndef E_CAL_MODEL_TASKS_H
27 #define E_CAL_MODEL_TASKS_H
29 #include "e-cal-model.h"
31 /* Standard GObject macros */
32 #define E_TYPE_CAL_MODEL_TASKS \
33 (e_cal_model_tasks_get_type ())
34 #define E_CAL_MODEL_TASKS(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST \
36 ((obj), E_TYPE_CAL_MODEL_TASKS, ECalModelTasks))
37 #define E_CAL_MODEL_TASKS_CLASS(cls) \
38 (G_TYPE_CHECK_CLASS_CAST \
39 ((cls), E_TYPE_CAL_MODEL_TASKS, ECalModelTasksClass))
40 #define E_IS_CAL_MODEL_TASKS(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE \
42 ((obj), E_TYPE_CAL_MODEL_TASKS))
43 #define E_IS_CAL_MODEL_TASKS_CLASS(cls) \
44 (G_TYPE_CHECK_CLASS_TYPE \
45 ((cls), E_TYPE_CAL_MODEL_TASKS))
46 #define E_CAL_MODEL_TASKS_GET_CLASS(obj) \
47 (G_TYPE_INSTANCE_GET_CLASS \
48 ((obj), E_TYPE_CAL_MODEL_TASKS, ECalModelTasksClass))
52 typedef struct _ECalModelTasks ECalModelTasks
;
53 typedef struct _ECalModelTasksClass ECalModelTasksClass
;
54 typedef struct _ECalModelTasksPrivate ECalModelTasksPrivate
;
57 /* If you add new items here or reorder them, you have to update the
58 .etspec files for the tables using this model */
59 E_CAL_MODEL_TASKS_FIELD_COMPLETED
= E_CAL_MODEL_FIELD_LAST
,
60 E_CAL_MODEL_TASKS_FIELD_COMPLETE
,
61 E_CAL_MODEL_TASKS_FIELD_DUE
,
62 E_CAL_MODEL_TASKS_FIELD_GEO
,
63 E_CAL_MODEL_TASKS_FIELD_OVERDUE
,
64 E_CAL_MODEL_TASKS_FIELD_PERCENT
,
65 E_CAL_MODEL_TASKS_FIELD_PRIORITY
,
66 E_CAL_MODEL_TASKS_FIELD_STATUS
,
67 E_CAL_MODEL_TASKS_FIELD_URL
,
68 E_CAL_MODEL_TASKS_FIELD_STRIKEOUT
, /* it's another virtual readonly column */
69 E_CAL_MODEL_TASKS_FIELD_LAST
70 } ECalModelTasksField
;
72 struct _ECalModelTasks
{
74 ECalModelTasksPrivate
*priv
;
77 struct _ECalModelTasksClass
{
78 ECalModelClass parent_class
;
81 GType
e_cal_model_tasks_get_type (void);
82 ECalModel
* e_cal_model_tasks_new (void);
83 const gchar
* e_cal_model_tasks_get_color_due_today
84 (ECalModelTasks
*model
);
85 void e_cal_model_tasks_set_color_due_today
86 (ECalModelTasks
*model
,
87 const gchar
*color_due_today
);
88 const gchar
* e_cal_model_tasks_get_color_overdue
89 (ECalModelTasks
*model
);
90 void e_cal_model_tasks_set_color_overdue
91 (ECalModelTasks
*model
,
92 const gchar
*color_overdue
);
93 void e_cal_model_tasks_mark_comp_complete
94 (ECalModelTasks
*model
,
95 ECalModelComponent
*comp_data
);
96 void e_cal_model_tasks_mark_comp_incomplete
97 (ECalModelTasks
*model
,
98 ECalModelComponent
*comp_data
);
99 void e_cal_model_tasks_update_due_tasks
100 (ECalModelTasks
*model
);
104 #endif /* E_CAL_MODEL_TASKS_H */