| libinfinity-0.6 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
#include <libinfinity/client/infc-progress-request.h>
InfcProgressRequest;
struct InfcProgressRequestClass;
void infc_progress_request_initiated (InfcProgressRequest *request,
guint total);
gboolean infc_progress_request_get_initiated (InfcProgressRequest *request);
void infc_progress_request_progress (InfcProgressRequest *request);
This class represents a request which consists of multiple steps and for which progress on the overall operation is reported.
typedef struct _InfcProgressRequest InfcProgressRequest;
InfcProgressRequest is an opaque data type. You should only access it via the public API functions.
struct InfcProgressRequestClass {
};
This structure does not contain any public fields.
void infc_progress_request_initiated (InfcProgressRequest *request,guint total);
Initiates the request. A progress request is considered initiated as soon as the total number of items is known.
|
An InfcProgressRequest. |
|
The total number of items. |
gboolean infc_progress_request_get_initiated (InfcProgressRequest *request);
Returns whether the request was initiated, i.e. the total number of items is known.
|
A InfcProgressRequest. |
Returns : |
Whether the request was initiated. |
void infc_progress_request_progress (InfcProgressRequest *request);
Indicates that one more operation has been performed and changes the "current" property accordingly. The request must be initiated before this function can be called.
|
A InfcProgressRequest. |
"current" property"current" guint : Read
The current number of finished operations.
Default value: 0