| Anjuta Developers Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <libanjuta/anjuta-async-command.h> struct AnjutaCommandQueueClass; enum AnjutaCommandQueueExecuteMode; AnjutaCommandQueuePriv; AnjutaCommandQueue * anjuta_command_queue_new (AnjutaCommandQueueExecuteMode mode); void anjuta_command_queue_push (AnjutaCommandQueue *self,AnjutaCommand *command); gboolean anjuta_command_queue_start (AnjutaCommandQueue *self);
AnjutaCommandQueue always starts the next command in the queue when the previous command finishes. That also works for asyncronous commands
struct AnjutaCommandQueueClass {
GObjectClass parent_class;
/* Signals */
void (*finished) (AnjutaCommandQueue *queue);
};
typedef enum {
ANJUTA_COMMAND_QUEUE_EXECUTE_AUTOMATIC,
ANJUTA_COMMAND_QUEUE_EXECUTE_MANUAL
} AnjutaCommandQueueExecuteMode;
AnjutaCommandQueue * anjuta_command_queue_new (AnjutaCommandQueueExecuteMode mode);
void anjuta_command_queue_push (AnjutaCommandQueue *self,AnjutaCommand *command);
Adds a command to the Queue and starts it if there are no other commands waiting
|
AnjutaCommandQueue object |
|
The command to add |