| Libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
struct FmFileInfoJob; struct FmFileInfoJobClass; enum FmFileInfoJobFlags; void fm_file_info_job_add (FmFileInfoJob *job,FmPath *path); void fm_file_info_job_add_gfile (FmFileInfoJob *job,GFile *gf); FmPath * fm_file_info_job_get_current (FmFileInfoJob *job); FmFileInfoJob * fm_file_info_job_new (FmPathList *files_to_query,FmFileInfoJobFlags flags);
include: libfm/fm.h
The FmFileInfoJob can be used to get filled FmFileInfo for some files.
struct FmFileInfoJob {
FmJob parent;
FmFileInfoJobFlags flags;
FmFileInfoList* file_infos;
};
FmJob |
the parent object |
FmFileInfoJobFlags |
flags for the job |
FmFileInfoList * |
gathered data |
struct FmFileInfoJobClass {
void (*got_info)(FmFileInfoJob *job, FmFileInfo *info);
};
| the class closure for the "got-info" signal. |
typedef enum {
FM_FILE_INFO_JOB_NONE = 0,
FM_FILE_INFO_JOB_FOLLOW_SYMLINK = 1 << 0, /* FIXME: not yet implemented */
FM_FILE_INFO_JOB_EMIT_FOR_EACH_FILE = 1 << 1
} FmFileInfoJobFlags;
| default | |
| not yet implemented | |
| emit "got-info" for each file |
void fm_file_info_job_add (FmFileInfoJob *job,FmPath *path);
Adds a path to query list for the job.
This API may only be called before starting the job.
|
a job to add file |
|
a path to add to query list |
Since 0.1.0
void fm_file_info_job_add_gfile (FmFileInfoJob *job,GFile *gf);
Adds a path gf to query list for the job.
This API may only be called before starting the job.
|
a job to add file |
|
a file descriptor to add to query list |
Since 0.1.0
FmPath * fm_file_info_job_get_current (FmFileInfoJob *job);
Retrieves current the FmPath which caused the error.
Returned data are owned by job and shouldn't be freed by caller.
This API may only be called in error handler.
|
the job to inspect |
Returns : |
the current processing file path. [transfer none] |
Since 0.1.10
FmFileInfoJob * fm_file_info_job_new (FmPathList *files_to_query,FmFileInfoJobFlags flags);
Creates a new FmFileInfoJob which can be used by FmJob API.
|
list of paths to query informatiom. [allow-none] |
|
modificators of query mode |
Returns : |
a new FmFileInfoJob object. [transfer full] |
Since 0.1.0
"got-info" signalvoid user_function (FmFileInfoJob *fmfileinfojob,
gpointer arg1,
gpointer user_data) : Run Last