symbol-db: project's progress bar fixed.
[anjuta.git] / libanjuta / anjuta-async-command.h
blob62daaf24df791e263fe20a9cfd814f2ae7c14f2f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta
4 * Copyright (C) James Liggett 2007 <jrliggett@cox.net>
6 * Portions based on the original Subversion plugin
7 * Copyright (C) Johannes Schmid 2005
8 *
9 * anjuta is free software.
11 * You may redistribute it and/or modify it under the terms of the
12 * GNU General Public License, as published by the Free Software
13 * Foundation; either version 2 of the License, or (at your option)
14 * any later version.
16 * anjuta is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 * See the GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with anjuta. If not, write to:
23 * The Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor
25 * Boston, MA 02110-1301, USA.
28 #ifndef _ANJUTA_ASYNC_COMMAND_H_
29 #define _ANJUTA_ASYNC_COMMAND_H_
31 #include <glib-object.h>
32 #include "anjuta-command.h"
34 G_BEGIN_DECLS
36 #define ANJUTA_TYPE_ASYNC_COMMAND (anjuta_async_command_get_type ())
37 #define ANJUTA_ASYNC_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommand))
38 #define ANJUTA_ASYNC_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommandClass))
39 #define ANJUTA_IS_ASYNC_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_ASYNC_COMMAND))
40 #define ANJUTA_IS_ASYNC_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_ASYNC_COMMAND))
41 #define ANJUTA_ASYNC_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommandClass))
43 typedef struct _AnjutaAsyncCommandClass AnjutaAsyncCommandClass;
44 typedef struct _AnjutaAsyncCommand AnjutaAsyncCommand;
45 typedef struct _AnjutaAsyncCommandPriv AnjutaAsyncCommandPriv;
47 struct _AnjutaAsyncCommandClass
49 AnjutaCommandClass parent_class;
52 struct _AnjutaAsyncCommand
54 AnjutaCommand parent_instance;
56 AnjutaAsyncCommandPriv *priv;
59 GType anjuta_async_command_get_type (void) G_GNUC_CONST;
61 void anjuta_async_command_set_error_message (AnjutaCommand *command,
62 const gchar *error_message);
63 gchar *anjuta_async_command_get_error_message (AnjutaCommand *command);
65 void anjuta_async_command_lock (AnjutaAsyncCommand *self);
66 void anjuta_async_command_unlock (AnjutaAsyncCommand *self);
68 G_END_DECLS
70 #endif /* _ANJUTA_ASYNC_COMMAND_H_ */