![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
AnjutaAsyncNotifyAnjutaAsyncNotify — Mechanism used by interfaces that run asynchronously to notify clients of finished tasks and to report errors. |
struct AnjutaAsyncNotifyClass; AnjutaAsyncNotify * anjuta_async_notify_new (void
); void anjuta_async_notify_get_error (AnjutaAsyncNotify *self
,GError **error
); void anjuta_async_notify_notify_finished (AnjutaAsyncNotify *self
); void anjuta_async_notify_set_error (AnjutaAsyncNotify *self
,GError *error
); AnjutaAsyncNotifyPriv;
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.
struct AnjutaAsyncNotifyClass { GObjectClass parent_class; /* Signals */ void (*finished) (AnjutaAsyncNotify *self); };
AnjutaAsyncNotify * anjuta_async_notify_new (void
);
Creates a new AnjutaAsyncNotify object.
Returns : |
a new AnjutaAsyncNotify instance |
void anjuta_async_notify_get_error (AnjutaAsyncNotify *self
,GError **error
);
Gets the error set on self
.
|
An AnjutaAsyncNotify object |
|
Return location for the error set by the called interface to which
this object was passed. If no error is set, error is set to NULL. |
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.
|
An AnjutaAsyncNotify object |
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.
|
An AnjutaAsyncNotify object |
|
Error to set |