| Libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct FmDirListJob; struct FmDirListJobClass; FmFileInfoList * fm_dir_list_job_get_files (FmDirListJob *job); FmDirListJob * fm_dir_list_job_new (FmPath *path,gboolean dir_only); FmDirListJob * fm_dir_list_job_new_for_gfile (GFile *gf);
include: libfm/fm-dir-list-job.h
The FmDirListJob can be used to gather list of FmFileInfo that some directory contains.
struct FmDirListJob {
FmJob parent;
FmPath* dir_path;
gboolean dir_only;
FmFileInfo* dir_fi;
FmFileInfoList* files;
};
FmJob |
the parent object |
FmPath * |
directory to get listing |
TRUE if list only subdirectories |
|
FmFileInfo * |
file info of the directory |
FmFileInfoList * |
the listing of the directory |
FmFileInfoList * fm_dir_list_job_get_files (FmDirListJob *job);
Retrieves gathered listing from the job. This function may be called
only from "finished" signal handler. Returned data is owned by
the job and should be not freed by caller.
|
the job that collected listing |
Returns : |
list of gathered data. [transfer none] |
Since 1.0.1
FmDirListJob * fm_dir_list_job_new (FmPath *path,gboolean dir_only);
Creates a new FmDirListJob for directory listing. If dir_only is
TRUE then objects other than directories will be omitted from the
listing.
|
path to directory to get listing |
|
TRUE to include only directories in the list |
Returns : |
a new FmDirListJob object. [transfer full] |
Since 0.1.0
FmDirListJob * fm_dir_list_job_new_for_gfile (GFile *gf);
Creates a new FmDirListJob for listing of directory gf.
|
descriptor of directory to get listing |
Returns : |
a new FmDirListJob object. [transfer full] |
Since 0.1.0