mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +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
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue