mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate db actions to label class
This commit is contained in:
parent
6b6ae753bc
commit
b67b9561fb
10 changed files with 291 additions and 59 deletions
|
|
@ -35,8 +35,7 @@ namespace app::browser::main
|
|||
ID,
|
||||
TIME,
|
||||
PAGE_NUMBER,
|
||||
IS_CURRENT,
|
||||
LABEL_TEXT
|
||||
IS_CURRENT
|
||||
}; // table fields index
|
||||
|
||||
static int init(
|
||||
|
|
@ -50,8 +49,7 @@ namespace app::browser::main
|
|||
static sqlite3_int64 add(
|
||||
sqlite3 * db,
|
||||
const int & PAGE_NUMBER,
|
||||
const bool & IS_CURRENT,
|
||||
const Glib::ustring & LABEL_TEXT
|
||||
const bool & IS_CURRENT
|
||||
); // return sqlite3_last_insert_rowid
|
||||
|
||||
};
|
||||
|
|
@ -123,7 +121,7 @@ namespace app::browser::main
|
|||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
int restore();
|
||||
int restore(); // return sqlite3_finalize status code
|
||||
|
||||
void clean();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue