run-program: Remove trailing spaces
[anjuta.git] / plugins / snippets-manager / snippets-group.h
blob5eef9ec09fe5c4c40c3d30c874a3cfc7d69018ed
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 snippets-group.h
4 Copyright (C) Dragos Dena 2010
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.
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.
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,
19 Boston, MA 02110-1301 USA
22 #ifndef __SNIPPETS_GROUP_H__
23 #define __SNIPPETS_GROUP_H__
25 #include <glib.h>
26 #include <glib-object.h>
27 #include "snippet.h"
29 G_BEGIN_DECLS
31 #define ANJUTA_TYPE_SNIPPETS_GROUP (snippets_group_get_type ())
32 #define ANJUTA_SNIPPETS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_SNIPPETS_GROUP, AnjutaSnippetsGroup))
33 #define ANJUTA_SNIPPETS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_SNIPPETS_GROUP, AnjutaSnippetsGroupClass))
34 #define ANJUTA_IS_SNIPPETS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_SNIPPETS_GROUP))
35 #define ANJUTA_IS_SNIPPETS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_SNIPPETS_GROUP))
37 typedef struct _AnjutaSnippetsGroup AnjutaSnippetsGroup;
38 typedef struct _AnjutaSnippetsGroupPrivate AnjutaSnippetsGroupPrivate;
39 typedef struct _AnjutaSnippetsGroupClass AnjutaSnippetsGroupClass;
41 struct _AnjutaSnippetsGroup
43 GObject parent_instance;
45 /*< private >*/
46 AnjutaSnippetsGroupPrivate* priv;
49 struct _AnjutaSnippetsGroupClass
51 GObjectClass parent_class;
55 GType snippets_group_get_type (void) G_GNUC_CONST;
56 AnjutaSnippetsGroup* snippets_group_new (const gchar* snippets_group_name);
57 const gchar* snippets_group_get_name (AnjutaSnippetsGroup* snippets_group);
58 void snippets_group_set_name (AnjutaSnippetsGroup* snippets_group,
59 const gchar* new_group_name);
60 gboolean snippets_group_add_snippet (AnjutaSnippetsGroup* snippets_group,
61 AnjutaSnippet* snippet);
62 void snippets_group_remove_snippet (AnjutaSnippetsGroup* snippets_group,
63 const gchar* trigger_key,
64 const gchar* language,
65 gboolean remove_all_languages_support);
66 gboolean snippets_group_has_snippet (AnjutaSnippetsGroup *snippets_group,
67 AnjutaSnippet *snippet);
68 GList* snippets_group_get_snippets_list (AnjutaSnippetsGroup* snippets_group);
70 G_END_DECLS
72 #endif /* __SNIPPETS_GROUP_H__ */