mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement restore feature for navbar request, change id data type to sqlite3_int64
This commit is contained in:
parent
9d88b4aa16
commit
6b6ae753bc
7 changed files with 167 additions and 11 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue