![]() |
![]() |
![]() |
libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#define FM_FILE_OPS_JOB_TYPE #define FM_FILE_OPS_JOB (obj) #define FM_FILE_OPS_JOB_CLASS (klass) #define IS_FM_FILE_OPS_JOB (obj) #define IS_FM_FILE_OPS_JOB_CLASS (klass) FmFileOpsJob; FmFileOpsJobClass; GType fm_file_ops_job_get_type (void
); FmJob* fm_file_ops_job_new (FmFileOpType type
,FmPathList *files
); void fm_file_ops_job_set_dest (FmFileOpsJob *job
,FmPath *dest
); FmPath* fm_file_ops_job_get_dest (FmFileOpsJob *job
); void fm_file_ops_job_set_recursive (FmFileOpsJob *job
,gboolean recursive
); void fm_file_ops_job_set_chmod (FmFileOpsJob *job
,mode_t new_mode
,mode_t new_mode_mask
); void fm_file_ops_job_set_chown (FmFileOpsJob *job
,guint uid
,guint gid
); void fm_file_ops_job_emit_prepared (FmFileOpsJob *job
); void fm_file_ops_job_emit_cur_file (FmFileOpsJob *job
,const char *cur_file
); void fm_file_ops_job_emit_percent (FmFileOpsJob *job
); FmFileOpOption fm_file_ops_job_ask_rename (FmFileOpsJob *job
,GFile *src
,GFileInfo *src_inf
,GFile *dest
,GFile **new_dest
);
typedef struct { FmJobClass parent_class; void (*cur_file)(FmFileOpsJob* job, FmPath* file); void (*percent)(FmFileOpsJob* job, guint percent); FmFileOpOption (*ask_rename)(FmFileOpsJob* job, FmFileInfo* src, FmFileInfo* dest, char** new_name); } FmFileOpsJobClass;
FmJob* fm_file_ops_job_new (FmFileOpType type
,FmPathList *files
);
|
|
|
|
Returns : |
void fm_file_ops_job_set_dest (FmFileOpsJob *job
,FmPath *dest
);
|
|
|
void fm_file_ops_job_set_recursive (FmFileOpsJob *job
,gboolean recursive
);
|
|
|
void fm_file_ops_job_set_chmod (FmFileOpsJob *job
,mode_t new_mode
,mode_t new_mode_mask
);
|
|
|
|
|
void fm_file_ops_job_set_chown (FmFileOpsJob *job
,guint uid
,guint gid
);
|
|
|
|
|
void fm_file_ops_job_emit_cur_file (FmFileOpsJob *job
,const char *cur_file
);
|
|
|
FmFileOpOption fm_file_ops_job_ask_rename (FmFileOpsJob *job
,GFile *src
,GFileInfo *src_inf
,GFile *dest
,GFile **new_dest
);
|
|
|
|
|
|
|
|
|
|
Returns : |
"ask-rename"
signalgint user_function (FmFileOpsJob *fmfileopsjob, gpointer arg1, gpointer arg2, gpointer arg3, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
user data set when the signal handler was connected. |
Returns : |
"cur-file"
signalvoid user_function (FmFileOpsJob *fmfileopsjob, gpointer arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"percent"
signalvoid user_function (FmFileOpsJob *fmfileopsjob, guint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"prepared"
signalvoid user_function (FmFileOpsJob *fmfileopsjob, gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |