File: screem-todo.h

package info (click to toggle)
screem 0.12.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 8,333
  • sloc: ansic: 98,234; sh: 8,278; xml: 2,278; makefile: 1,054
file content (65 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (3)
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