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

@ -48,6 +48,7 @@ namespace app::browser::main::tab
enum
{
ID,
APP_BROWSER_MAIN_TAB__SESSION__ID,
TIME,
MIME,
TITLE,
@ -60,7 +61,7 @@ namespace app::browser::main::tab
static int clean(
sqlite3 * db,
const int & APP_BROWSER_MAIN_TAB__SESSION__ID
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
); // return sqlite3_finalize status code
static sqlite3_int64 add(
@ -119,6 +120,10 @@ namespace app::browser::main::tab
// Actions
void update();
int restore(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
);
int save(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
);