Top |
AnjutaAsyncNotifyAnjutaAsyncNotify — Mechanism used by interfaces that run asynchronously to notify clients of finished tasks and to report errors. |
Description
AnjutaAsyncNotify is a way to allow Anjuta interfaces that run asynchronously, such as IAnjutaVCS, to notify clients that a method has completed. AnjutaAsyncNotify also reports errors to the user.
All clients need to do is create an instance of AnjutaAsyncNotify, connect to the finished signal, and pass it in to the interface method to be called.
Functions
anjuta_async_notify_new ()
AnjutaAsyncNotify *
anjuta_async_notify_new (void
);
Creates a new AnjutaAsyncNotify object.
anjuta_async_notify_get_error ()
void anjuta_async_notify_get_error (AnjutaAsyncNotify *self
,GError **error
);
Gets the error set on self
.
Parameters
self |
An AnjutaAsyncNotify object |
|
error |
Return location for the error set by the called interface to which
this object was passed. If no error is set, |
anjuta_async_notify_notify_finished ()
void
anjuta_async_notify_notify_finished (AnjutaAsyncNotify *self
);
Emits the finished signal. This method should only be used by interface methods themselves, not by clients.
anjuta_async_notify_set_error ()
void anjuta_async_notify_set_error (AnjutaAsyncNotify *self
,GError *error
);
Sets the error for an interface call. This method should only be used by interface implementations themselves, not by clients.