From eb5a3b3535057a62728460cce562aa64312e0519 Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 27 Oct 2022 00:34:28 +0000 Subject: Prototype code for store_database_partial. --- readme.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 4fef661..770fe3e 100644 --- a/readme.md +++ b/readme.md @@ -5,6 +5,7 @@ Task Time Tracker - [ncurses colors](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/color.html#COLORBASICS) - [pprintf](https://cplusplus.com/reference/cstdio/printf/) - [intmax_t](https://wiki.sei.cmu.edu/confluence/plugins/servlet/mobile?contentId=87152366#content/view/87152366) +- [hexed.it](https://hexed.it/) # to-do list - [x] Include check on number of char bits; @@ -51,18 +52,20 @@ Task Time Tracker - [x] Add/remove time using keys: `F3`; - [x] Add/remove time for any day of week; - [x] Total times may saturate, but before that the user will see the infinite symbol. Solution: Provide user with possibility to refresh totals. -- [ ] Improve the way we save the changes made to the database: +- [x] Decide on a INVALID_WINDOW_MESSAGE. +- [x] Use backspace to clear all timers for current task. +- [ ] Save more often using the `store_database_partial` and only save all when quitting: - When operating on the archive, will we keep the saves synchronous? - Maybe add a cooldown timer and save changes after it times out? - Maybe add a partial-save when (de)activating a task (just save the task and the database core? - - partial_store_task(db, task) - - partial_store_database(db) - - on (de)activate_task : partial_store_database partial_store_database - - on rename, changetimes : partial_store_task - - on new_task : partial_store_database partial_store_task - - on refresh : partial_store_database - - on exit if active : partial_store_database partial_store_task - - on move, delete, archive: FULL store_database + - on (de)activate_task : partial w/task + - on rename, changetimes : partial w/task + - on new_task : partial w/task + - on refresh : partial + - on exit : full + - on move, delete, archive: full +- [ ] Check if string_buffer needs to be cleared. We may be leaking info on the string_buffer. +- [ ] Maybe replace all `sprintf` by `snprintf`; - [ ] REVISE ALL CODE ptrdiff_t/size_t (signed/unsigned)! - [ ] Go over all `TODO` items; - [ ] Cleanup `draw_tui`: -- cgit v1.2.3