anjuta r4570 - in trunk: . libanjuta



Author: jrliggett
Date: Sun Jan 11 05:17:33 2009
New Revision: 4570
URL: http://svn.gnome.org/viewvc/anjuta?rev=4570&view=rev

Log:
* libanjuta/anjuta-command.c (anjuta_command_class_init),
(anjuta_command_cancel):
* libanjuta/anjuta-command.h:
Add a cancel method to AnjutaCommand.

Modified:
   trunk/ChangeLog
   trunk/libanjuta/anjuta-command.c
   trunk/libanjuta/anjuta-command.h

Modified: trunk/libanjuta/anjuta-command.c
==============================================================================
--- trunk/libanjuta/anjuta-command.c	(original)
+++ trunk/libanjuta/anjuta-command.c	Sun Jan 11 05:17:33 2009
@@ -99,6 +99,7 @@
 	
 	klass->run = NULL;
 	klass->start = NULL;
+	klass->cancel = NULL;
 	klass->notify_data_arrived = NULL;
 	klass->notify_complete = NULL;
 	klass->notify_progress = NULL;
@@ -177,6 +178,17 @@
 	ANJUTA_COMMAND_GET_CLASS (self)->start (self);
 }
 
+/**
+ * anjuta_command_cancel:
+ * @self: Command object.
+ *
+ * Cancels a running command.
+ */
+void
+anjuta_command_cancel (AnjutaCommand *self)
+{
+	ANJUTA_COMMAND_GET_CLASS (self)->cancel (self);
+}
 
 /**
  * anjuta_command_notify_data_arrived:

Modified: trunk/libanjuta/anjuta-command.h
==============================================================================
--- trunk/libanjuta/anjuta-command.h	(original)
+++ trunk/libanjuta/anjuta-command.h	Sun Jan 11 05:17:33 2009
@@ -47,6 +47,7 @@
 	/* Virtual Methods */
 	guint (*run) (AnjutaCommand *self);
 	void (*start) (AnjutaCommand *self);
+	void (*cancel) (AnjutaCommand *self);
 	void (*notify_data_arrived) (AnjutaCommand *self);
 	void (*notify_complete) (AnjutaCommand *self, guint return_code);
 	void (*notify_progress) (AnjutaCommand *self, gfloat progress);
@@ -68,6 +69,7 @@
 GType anjuta_command_get_type (void) G_GNUC_CONST;
 
 void anjuta_command_start (AnjutaCommand *self);
+void anjuta_command_cancel (AnjutaCommand *self);
 void anjuta_command_notify_data_arrived (AnjutaCommand *self);
 void anjuta_command_notify_complete (AnjutaCommand *self, guint return_code);
 void anjuta_command_notify_progress (AnjutaCommand *self, gfloat progress);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]