implement restore feature for navbar request, change id data type to sqlite3_int64

This commit is contained in:
yggverse 2024-09-11 04:15:55 +03:00
parent 9d88b4aa16
commit 6b6ae753bc
7 changed files with 167 additions and 11 deletions

View file

@ -29,6 +29,7 @@ namespace app::browser::main::tab::page::navigation
enum
{
ID,
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
TIME,
TEXT
}; // table fields index
@ -39,7 +40,7 @@ namespace app::browser::main::tab::page::navigation
static int clean(
sqlite3 * db,
const int & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
); // return sqlite3_finalize status code
static sqlite3_int64 add(
@ -95,6 +96,10 @@ namespace app::browser::main::tab::page::navigation
const double & PROGRESS_FRACTION
);
int restore(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
);
int save(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
);