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> 5 * 6 * Portions based on the original Subversion plugin 7 * Copyright (C) Johannes Schmid 2005 8 * 9 * anjuta is free software. 10 * 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. 15 * 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. 20 * 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. 26 */ 27 28 #ifndef _ANJUTA_ASYNC_COMMAND_H_ 29 #define _ANJUTA_ASYNC_COMMAND_H_ 30 31 #include <glib-object.h> 32 #include "anjuta-command.h" 33 34 G_BEGIN_DECLS 35 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)) 42 43 typedef struct _AnjutaAsyncCommandClass AnjutaAsyncCommandClass; 44 typedef struct _AnjutaAsyncCommand AnjutaAsyncCommand; 45 typedef struct _AnjutaAsyncCommandPriv AnjutaAsyncCommandPriv; 46 47 struct _AnjutaAsyncCommandClass 48 { 49 AnjutaCommandClass parent_class; 50 }; 51 52 struct _AnjutaAsyncCommand 53 { 54 AnjutaCommand parent_instance; 55 56 AnjutaAsyncCommandPriv *priv; 57 }; 58 59 GType anjuta_async_command_get_type (void) G_GNUC_CONST; 60 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); 64 65 void anjuta_async_command_lock (AnjutaAsyncCommand *self); 66 void anjuta_async_command_unlock (AnjutaAsyncCommand *self); 67 68 G_END_DECLS 69 70 #endif /* _ANJUTA_ASYNC_COMMAND_H_ */ 71