cancel download: changes idea
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
# TODO:
|
# TODO:
|
||||||
|
|
||||||
## Current:
|
## Current:
|
||||||
- [x] Show download/upload progress in percentages
|
- [ ] Rewrite cancel download. Use packages and check every time for a confirmation to continue download
|
||||||
- [ ] File upload multiline description (window)
|
- [ ] File upload multiline description (window)
|
||||||
- [ ] Sorting in the file list
|
- [ ] Sorting in the file list
|
||||||
- [ ] Resume download
|
- [ ] Resume download
|
||||||
- [ ] Separate common structures in the common.h
|
- [ ] Separate common structures in the common.h
|
||||||
|
- [x] Show download/upload progress in percentages
|
||||||
- [x] Break line automatically in modal widgets
|
- [x] Break line automatically in modal widgets
|
||||||
- [x] Cancel upload/download
|
- [x] Cancel upload/download
|
||||||
- [x] Input: fix non-Latin letters
|
- [x] Input: fix non-Latin letters
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ enum state {
|
|||||||
S_PREP_SERVER_MESSAGE,
|
S_PREP_SERVER_MESSAGE,
|
||||||
S_PRINT_SERVER_MESSAGE,
|
S_PRINT_SERVER_MESSAGE,
|
||||||
S_FILE_LIST,
|
S_FILE_LIST,
|
||||||
S_WAIT_SERVER_READY,
|
|
||||||
S_WAIT_PASS,
|
S_WAIT_PASS,
|
||||||
/* S_FILE_SELECT, */
|
/* S_FILE_SELECT, */
|
||||||
S_DOWNLOAD_FILE,
|
S_DOWNLOAD_FILE,
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ void dwn_pr_modal_cb(w_cb_args_t *args) {
|
|||||||
server_send_string(app->query_args, "cancel\n");
|
server_send_string(app->query_args, "cancel\n");
|
||||||
FILE_CLEAN(app);
|
FILE_CLEAN(app);
|
||||||
d->needs_destroy = true;
|
d->needs_destroy = true;
|
||||||
app->query_args->state = S_WAIT_SERVER_READY;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -216,8 +216,6 @@ int process_query(app_t *app) {
|
|||||||
case S_PREP_SERVER_MESSAGE:
|
case S_PREP_SERVER_MESSAGE:
|
||||||
process_command(app, server_print_message_cb);
|
process_command(app, server_print_message_cb);
|
||||||
break;
|
break;
|
||||||
case S_WAIT_SERVER_READY:
|
|
||||||
/* TODO: implement */
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,8 +93,6 @@ int server_print_message_cb(app_t *app, char *line, int l_len) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: function that do all extraction stuff and compares the buf with a given world (in arg) */
|
|
||||||
|
|
||||||
int process_server_command(char *line, int l_len, app_t *app) {
|
int process_server_command(char *line, int l_len, app_t *app) {
|
||||||
int ws_pos = l_len;
|
int ws_pos = l_len;
|
||||||
query_args_t *q_args = app->query_args;
|
query_args_t *q_args = app->query_args;
|
||||||
@@ -191,10 +189,6 @@ void ask_uname_and_password(params_t *params) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wait_server_ready(params_t *params) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void ask_register(params_t *params, char *email) {
|
void ask_register(params_t *params, char *email) {
|
||||||
size_t lsize;
|
size_t lsize;
|
||||||
char *bufptr = NULL;
|
char *bufptr = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user