1 /*
2  *      ao_tasks.h - this file is part of Addons, a Geany plugin
3  *
4  *      Copyright 2009-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5  *
6  *      This program is free software; you can redistribute it and/or modify
7  *      it under the terms of the GNU General Public License as published by
8  *      the Free Software Foundation; either version 2 of the License, or
9  *      (at your option) any later version.
10  *
11  *      This program is distributed in the hope that it will be useful,
12  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *      GNU General Public License for more details.
15  *
16  *      You should have received a copy of the GNU General Public License
17  *      along with this program; if not, write to the Free Software
18  *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  * $Id$
21  */
22 
23 
24 #ifndef __AO_TASKS_H__
25 #define __AO_TASKS_H__
26 
27 G_BEGIN_DECLS
28 
29 #define AO_TASKS_TYPE				(ao_tasks_get_type())
30 #define AO_TASKS(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), AO_TASKS_TYPE, AoTasks))
31 #define AO_TASKS_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), AO_TASKS_TYPE, AoTasksClass))
32 #define IS_AO_TASKS(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), AO_TASKS_TYPE))
33 #define IS_AO_TASKS_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass), AO_TASKS_TYPE))
34 
35 typedef struct _AoTasks			AoTasks;
36 typedef struct _AoTasksClass	AoTasksClass;
37 
38 GType			ao_tasks_get_type		(void);
39 AoTasks*		ao_tasks_new			(gboolean enable,
40 										 const gchar *tokens,
41 										 gboolean scan_all_documents);
42 void			ao_tasks_update			(AoTasks *t, GeanyDocument *cur_doc);
43 void			ao_tasks_update_single	(AoTasks *t, GeanyDocument *cur_doc);
44 void			ao_tasks_remove			(AoTasks *t, GeanyDocument *cur_doc);
45 void			ao_tasks_activate		(AoTasks *t);
46 void			ao_tasks_set_active		(AoTasks *t);
47 
48 G_END_DECLS
49 
50 #endif /* __AO_TASKS_H__ */
51