1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3 * anjuta-plugin-handle.h
4 * Copyright (C) Naba Kumar <naba@gnome.org>
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef _ANJUTA_PLUGIN_HANDLE_H_
22 #define _ANJUTA_PLUGIN_HANDLE_H_
24 #include <glib-object.h>
25 #include <libanjuta/anjuta-plugin-description.h>
29 #define ANJUTA_TYPE_PLUGIN_HANDLE (anjuta_plugin_handle_get_type ())
30 #define ANJUTA_PLUGIN_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_PLUGIN_HANDLE, AnjutaPluginHandle))
31 #define ANJUTA_PLUGIN_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_PLUGIN_HANDLE, AnjutaPluginHandleClass))
32 #define ANJUTA_IS_PLUGIN_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_PLUGIN_HANDLE))
33 #define ANJUTA_IS_PLUGIN_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_PLUGIN_HANDLE))
34 #define ANJUTA_PLUGIN_HANDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_PLUGIN_HANDLE, AnjutaPluginHandleClass))
36 typedef struct _AnjutaPluginHandleClass AnjutaPluginHandleClass
;
37 typedef struct _AnjutaPluginHandlePriv AnjutaPluginHandlePriv
;
38 typedef struct _AnjutaPluginHandle AnjutaPluginHandle
;
40 struct _AnjutaPluginHandleClass
42 GObjectClass parent_class
;
45 struct _AnjutaPluginHandle
47 GObject parent_instance
;
48 AnjutaPluginHandlePriv
*priv
;
51 GType
anjuta_plugin_handle_get_type (void) G_GNUC_CONST
;
52 AnjutaPluginHandle
* anjuta_plugin_handle_new (const gchar
*plugin_desc_path
);
53 const char* anjuta_plugin_handle_get_id (AnjutaPluginHandle
*plugin_handle
);
54 const char* anjuta_plugin_handle_get_name (AnjutaPluginHandle
*plugin_handle
);
55 const char* anjuta_plugin_handle_get_about (AnjutaPluginHandle
*plugin_handle
);
56 const char* anjuta_plugin_handle_get_icon_path (AnjutaPluginHandle
*plugin_handle
);
57 gboolean
anjuta_plugin_handle_get_user_activatable (AnjutaPluginHandle
*plugin_handle
);
58 AnjutaPluginDescription
* anjuta_plugin_handle_get_description (AnjutaPluginHandle
*plugin_handle
);
59 GList
* anjuta_plugin_handle_get_dependency_names (AnjutaPluginHandle
*plugin_handle
);
60 GHashTable
* anjuta_plugin_handle_get_dependencies (AnjutaPluginHandle
*plugin_handle
);
61 GHashTable
* anjuta_plugin_handle_get_dependents (AnjutaPluginHandle
*plugin_handle
);
62 GList
* anjuta_plugin_handle_get_interfaces (AnjutaPluginHandle
*plugin_handle
);
63 gboolean
anjuta_plugin_handle_get_can_load (AnjutaPluginHandle
*plugin_handle
);
64 gboolean
anjuta_plugin_handle_get_checked (AnjutaPluginHandle
*plugin_handle
);
65 gint
anjuta_plugin_handle_get_resolve_pass (AnjutaPluginHandle
*plugin_handle
);
66 void anjuta_plugin_handle_set_can_load (AnjutaPluginHandle
*plugin_handle
,
68 void anjuta_plugin_handle_set_checked (AnjutaPluginHandle
*plugin_handle
,
70 void anjuta_plugin_handle_set_resolve_pass (AnjutaPluginHandle
*plugin_handle
,
71 gboolean resolve_pass
);
72 void anjuta_plugin_handle_unresolve_dependencies (AnjutaPluginHandle
*plugin_handle
);
76 #endif /* _ANJUTA_PLUGIN_HANDLE_H_ */