![]() |
![]() |
![]() |
Nautilus Extension Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites |
#include <libnautilus-extension/nautilus-column-provider.h> NautilusInfoProvider; struct NautilusInfoProviderIface; void (*NautilusInfoProviderUpdateComplete) (NautilusInfoProvider *provider
,NautilusOperationHandle *handle
,NautilusOperationResult result
,gpointer user_data
); NautilusOperationHandle; enum NautilusOperationResult; NautilusOperationResult nautilus_info_provider_update_file_info (NautilusInfoProvider *provider
,NautilusFileInfo *file
,GClosure *update_complete
,NautilusOperationHandle **handle
); void nautilus_info_provider_cancel_update (NautilusInfoProvider *provider
,NautilusOperationHandle *handle
); void nautilus_info_provider_update_complete_invoke (GClosure *update_complete
,NautilusInfoProvider *provider
,NautilusOperationHandle *handle
,NautilusOperationResult result
);
NautilusInfoProvider allows extension to provide additional information about
files. When nautilus_info_provider_update_file_info()
is called by the application,
extensions will know that it's time to add extra information to the provided
NautilusFileInfo.
struct NautilusInfoProviderIface { GTypeInterface g_iface; NautilusOperationResult (*update_file_info) (NautilusInfoProvider *provider, NautilusFileInfo *file, GClosure *update_complete, NautilusOperationHandle **handle); void (*cancel_update) (NautilusInfoProvider *provider, NautilusOperationHandle *handle); };
Interface for extensions to provide additional information about files.
The parent interface. | |
Returns a NautilusOperationResult.
See nautilus_info_provider_update_file_info() for details. |
|
Cancels a previous call to nautilus_info_provider_update_file_info() .
See nautilus_info_provider_cancel_update() for details. |
void (*NautilusInfoProviderUpdateComplete) (NautilusInfoProvider *provider
,NautilusOperationHandle *handle
,NautilusOperationResult result
,gpointer user_data
);
typedef struct _NautilusOperationHandle NautilusOperationHandle;
Handle for asynchronous interfaces. These are opaque handles that must be unique within an extension object. These are returned by operations that return NAUTILUS_OPERATION_IN_PROGRESS.
typedef enum { /* Returned if the call succeeded, and the extension is done * with the request */ NAUTILUS_OPERATION_COMPLETE, /* Returned if the call failed */ NAUTILUS_OPERATION_FAILED, /* Returned if the extension has begun an async operation. * If this is returned, the extension must set the handle * parameter and call the callback closure when the * operation is complete. */ NAUTILUS_OPERATION_IN_PROGRESS } NautilusOperationResult;
Return values for asynchronous operations performed by the extension.
See nautilus_info_provider_update_file_info()
.
the operation succeeded, and the extension is done with the request. | |
the operation failed. | |
the extension has begin an async operation. When this value is returned, the extension must set the handle parameter and call the callback closure when the operation is complete. |
NautilusOperationResult nautilus_info_provider_update_file_info (NautilusInfoProvider *provider
,NautilusFileInfo *file
,GClosure *update_complete
,NautilusOperationHandle **handle
);
void nautilus_info_provider_cancel_update (NautilusInfoProvider *provider
,NautilusOperationHandle *handle
);
void nautilus_info_provider_update_complete_invoke (GClosure *update_complete
,NautilusInfoProvider *provider
,NautilusOperationHandle *handle
,NautilusOperationResult result
);