mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement multi-table struct model
This commit is contained in:
parent
5f910bf81b
commit
b3635c77bc
4 changed files with 65 additions and 59 deletions
|
|
@ -22,29 +22,33 @@ namespace app::browser::main
|
|||
|
||||
struct DB
|
||||
{
|
||||
enum APP_BROWSER_MAIN_TAB__SESSION
|
||||
struct APP_BROWSER_MAIN_TAB__SESSION
|
||||
{
|
||||
ID,
|
||||
TIME,
|
||||
PAGE_NUMBER,
|
||||
IS_CURRENT,
|
||||
LABEL_TEXT
|
||||
enum
|
||||
{
|
||||
ID,
|
||||
TIME,
|
||||
PAGE_NUMBER,
|
||||
IS_CURRENT,
|
||||
LABEL_TEXT
|
||||
};
|
||||
|
||||
static int init(
|
||||
sqlite3 * db
|
||||
);
|
||||
|
||||
static int clear(
|
||||
sqlite3 * db
|
||||
);
|
||||
|
||||
static sqlite3_int64 add(
|
||||
sqlite3 * db,
|
||||
const int & PAGE_NUMBER,
|
||||
const bool & IS_CURRENT,
|
||||
const Glib::ustring & LABEL_TEXT
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
static int init(
|
||||
sqlite3 * db
|
||||
);
|
||||
|
||||
static int clear(
|
||||
sqlite3 * db
|
||||
);
|
||||
|
||||
static sqlite3_int64 add(
|
||||
sqlite3 * db,
|
||||
const int & PAGE_NUMBER,
|
||||
const bool & IS_CURRENT,
|
||||
const Glib::ustring & LABEL_TEXT
|
||||
);
|
||||
};
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue