- converted 1st stage setup stub from message box style to property sheet style
[reactos.git] / rosapps / applications / mc / src / file.h
1 #ifndef __FILE_H
2 #define __FILE_H
3
4 enum { OP_COPY, OP_MOVE, OP_DELETE };
5 enum { FILE_CONT, FILE_RETRY, FILE_SKIP, FILE_ABORT };
6
7 extern int verbose;
8 extern int know_not_what_am_i_doing;
9
10 struct link;
11
12 int copy_file_file (char *s, char *d, int ask_overwrite);
13 int move_file_file (char *s, char *d);
14 int erase_dir (char *s);
15 int erase_dir_iff_empty (char *s);
16 int move_dir_dir (char *s, char *d);
17 int copy_dir_dir (char *s, char *d, int toplevel, int move_over, int delete, struct link *parent_dirs);
18
19 void create_op_win (int op, int with_eta);
20 void destroy_op_win (void);
21 void refresh_op_win (void);
22 int panel_operate (void *source_panel, int op, char *thedefault);
23 void file_mask_defaults (void);
24
25 extern int dive_into_subdirs;
26
27 /* Error reporting routines */
28 /* Skip/Retry/Abort routine */
29 int do_file_error (char *error);
30
31 /* Report error with one file */
32 int file_error (char *format, char *file);
33
34 /* Report error with two files */
35 int files_error (char *format, char *file1, char *file2);
36
37 /* This one just displays buf */
38 int do_file_error (char *buf);
39
40 /* Query routines */
41 /* Replace existing file */
42 int query_replace (char *destname, struct stat *_s_stat, struct stat *_d_stat);
43
44 /* Query recursive delete */
45 int query_recursive (char *s);
46
47 /* Callback routine for background activity */
48 int background_attention (int fd, void *info);
49 extern int background_wait;
50
51 #endif