![]() |
![]() |
![]() |
libinfinity-0.5 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <libinfinity/client/infc-request.h> InfcRequest; struct InfcRequestClass; guint infc_request_get_seq (InfcRequest *request
); const gchar * infc_request_get_name (InfcRequest *request
); void infc_request_failed (InfcRequest *request
,GError *error
);
GObject +----InfcRequest +----InfcExploreRequest +----InfcNodeRequest +----InfcUserRequest
"name" gchar* : Read / Write / Construct Only "seq" guint : Read / Write / Construct Only
A InfcRequest represents a request that was sent to the server. It can be used to get information related to that request and to be notified when the request fails or finishes.
InfcRequest is the base class for other requests and only has the "failed" signal. Use signals from specific requests such as InfcNodeRequest to get further notification. Every request has a name and a sequence number. The sequence number is used in the server reply to refer to a specific request and normally of no use for developers using the infinote API.
struct InfcRequestClass { GObjectClass parent_class; /* Signals */ void (*failed)(InfcRequest* request, GError* error); void (*unused1)(void); void (*usused2)(void); };
guint infc_request_get_seq (InfcRequest *request
);
Returns the sequence identifier for this request.
|
A InfcRequest. |
Returns : |
The sequence number for request. |
const gchar * infc_request_get_name (InfcRequest *request
);
Returns the name of the request.
|
A InfcRequest. |
Returns : |
The name of request . |
void infc_request_failed (InfcRequest *request
,GError *error
);
Emits the "failed" signal on request
.
|
A InfcRequest. |
|
A GError. |
"name"
property"name" gchar* : Read / Write / Construct Only
Name of the request.
Default value: NULL
"seq"
property"seq" guint : Read / Write / Construct Only
Identifier for this request.
Default value: 0
"failed"
signalvoid user_function (InfcRequest *request,
gpointer error,
gpointer user_data) : Run Last
Emitted when the request could not be processed on the server side.
error
holds additional information on why the request failed.
|
The failed InfcRequest. |
|
A pointer to a GError object with details on the error. |
|
user data set when the signal handler was connected. |