|
|
|
@ -5,7 +5,7 @@
@@ -5,7 +5,7 @@
|
|
|
|
|
using namespace app::browser::main; |
|
|
|
|
|
|
|
|
|
Tab::Tab( |
|
|
|
|
SQLite::Database & db, |
|
|
|
|
sqlite3 * db, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__REFRESH, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__TAB_CLOSE_ACTIVE, |
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_CLOSE_ALL, |
|
|
|
@ -14,7 +14,10 @@ Tab::Tab(
@@ -14,7 +14,10 @@ Tab::Tab(
|
|
|
|
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__TAB_PAGE_NAVIGATION_UPDATE |
|
|
|
|
) { |
|
|
|
|
// Init database
|
|
|
|
|
db.exec( |
|
|
|
|
char * errmsg; |
|
|
|
|
|
|
|
|
|
::sqlite3_exec( |
|
|
|
|
db, |
|
|
|
|
R"SQL( |
|
|
|
|
CREATE TABLE IF NOT EXISTS `app_browser_main_tab` |
|
|
|
|
( |
|
|
|
@ -22,7 +25,10 @@ Tab::Tab(
@@ -22,7 +25,10 @@ Tab::Tab(
|
|
|
|
|
`time` INTEGER NOT NULL, |
|
|
|
|
`request` VARCHAR(1024) |
|
|
|
|
) |
|
|
|
|
)SQL" |
|
|
|
|
)SQL", |
|
|
|
|
nullptr, |
|
|
|
|
nullptr, |
|
|
|
|
&errmsg |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Init actions
|
|
|
|
|