1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#ifndef SCREEM_TODO_H
#define SCREEM_TODO_H
#include <glib-object.h>
#include "screem-site.h"
#define SCREEM_TYPE_TODO (screem_todo_get_type ())
#define SCREEM_TODO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCREEM_TYPE_TODO, ScreemTodo))
#define SCREEM_TODO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SCREEM_TYPE_TODO, ScreemTodoClass))
#define SCREEM_IS_TODO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCREEM_TYPE_TODO))
typedef struct ScreemTodoPrivate ScreemTodoPrivate;
typedef struct ScreemTodoItem {
gchar *task;
gchar *assigned;
gchar *priority;
gchar *linked_to;
gchar *description;
gboolean complete;
} ScreemTodoItem;
typedef struct {
GObject parent;
ScreemTodoPrivate *private;
} ScreemTodo;
typedef struct {
GObjectClass parent_class;
} ScreemTodoClass;
GType screem_todo_get_type( void );
ScreemTodo* screem_todo_new( ScreemSite *site );
void screem_todo_clear( ScreemTodo *todo );
/* yuk */
GList* screem_todo_get_tasks( ScreemTodo *todo );
void screem_todo_view( ScreemTodo *todo );
/* item related functions */
ScreemTodoItem* screem_todo_item_new();
ScreemTodoItem* screem_todo_item_new_with_values( const gchar *name,
const gchar *assigned,
const gchar *priority,
const gchar *linkedto,
const gchar *description,
gboolean complete );
void screem_todo_item_free( ScreemTodoItem *item );
void screem_todo_add_todo_item( ScreemTodo *todo, ScreemTodoItem *item );
void screem_todo_add_todo_item_with_values( ScreemTodo *todo,
const gchar *name,
const gchar *assigned,
const gchar *priority,
const gchar *linkedto,
const gchar *description,
const gboolean complete );
#endif
|