mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add comments
This commit is contained in:
parent
e3c721597d
commit
606cd1a223
2 changed files with 30 additions and 8 deletions
|
|
@ -20,6 +20,11 @@ namespace app::browser::main
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class database
|
||||||
|
*
|
||||||
|
* Allowed parental access to enums and relationship methods
|
||||||
|
*/
|
||||||
struct DB
|
struct DB
|
||||||
{
|
{
|
||||||
struct APP_BROWSER_MAIN_TAB__SESSION
|
struct APP_BROWSER_MAIN_TAB__SESSION
|
||||||
|
|
@ -31,26 +36,29 @@ namespace app::browser::main
|
||||||
PAGE_NUMBER,
|
PAGE_NUMBER,
|
||||||
IS_CURRENT,
|
IS_CURRENT,
|
||||||
LABEL_TEXT
|
LABEL_TEXT
|
||||||
};
|
}; // table fields index
|
||||||
|
|
||||||
static int init(
|
static int init(
|
||||||
sqlite3 * db
|
sqlite3 * db
|
||||||
);
|
); // return SQLite status code
|
||||||
|
|
||||||
static int clean(
|
static int clean(
|
||||||
sqlite3 * db
|
sqlite3 * db
|
||||||
);
|
); // return SQLite status code
|
||||||
|
|
||||||
static sqlite3_int64 add(
|
static sqlite3_int64 add(
|
||||||
sqlite3 * db,
|
sqlite3 * db,
|
||||||
const int & PAGE_NUMBER,
|
const int & PAGE_NUMBER,
|
||||||
const bool & IS_CURRENT,
|
const bool & IS_CURRENT,
|
||||||
const Glib::ustring & LABEL_TEXT
|
const Glib::ustring & LABEL_TEXT
|
||||||
);
|
); // return last insert ID
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Internal members
|
||||||
|
*/
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
@ -68,6 +76,9 @@ namespace app::browser::main
|
||||||
const bool REORDERABLE = true;
|
const bool REORDERABLE = true;
|
||||||
const bool SCROLLABLE = true;
|
const bool SCROLLABLE = true;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class API
|
||||||
|
*/
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Tab(
|
Tab(
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,11 @@ namespace app::browser::main::tab
|
||||||
UNDEFINED
|
UNDEFINED
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class database
|
||||||
|
*
|
||||||
|
* Allowed parental access to enums and relationship methods
|
||||||
|
*/
|
||||||
struct DB
|
struct DB
|
||||||
{
|
{
|
||||||
struct APP_BROWSER_MAIN_TAB_PAGE__SESSION
|
struct APP_BROWSER_MAIN_TAB_PAGE__SESSION
|
||||||
|
|
@ -46,16 +51,16 @@ namespace app::browser::main::tab
|
||||||
MIME,
|
MIME,
|
||||||
TITLE,
|
TITLE,
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
};
|
}; // table fields index
|
||||||
|
|
||||||
static int init(
|
static int init(
|
||||||
sqlite3 * db
|
sqlite3 * db
|
||||||
);
|
); // return SQLite status code
|
||||||
|
|
||||||
static int clean(
|
static int clean(
|
||||||
sqlite3 * db,
|
sqlite3 * db,
|
||||||
const int & DB__APP_BROWSER_MAIN_TAB__SESSION_ID
|
const int & DB__APP_BROWSER_MAIN_TAB__SESSION_ID
|
||||||
);
|
); // return SQLite status code
|
||||||
|
|
||||||
static sqlite3_int64 add(
|
static sqlite3_int64 add(
|
||||||
sqlite3 * db,
|
sqlite3 * db,
|
||||||
|
|
@ -63,10 +68,13 @@ namespace app::browser::main::tab
|
||||||
const Page::MIME & MIME,
|
const Page::MIME & MIME,
|
||||||
const Glib::ustring & TITLE,
|
const Glib::ustring & TITLE,
|
||||||
const Glib::ustring & DESCRIPTION
|
const Glib::ustring & DESCRIPTION
|
||||||
);
|
); // return last insert ID
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Internal members
|
||||||
|
*/
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Meta
|
// Meta
|
||||||
|
|
@ -91,6 +99,9 @@ namespace app::browser::main::tab
|
||||||
page::Content * pageContent;
|
page::Content * pageContent;
|
||||||
page::Navigation * pageNavigation;
|
page::Navigation * pageNavigation;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class API
|
||||||
|
*/
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Page(
|
Page(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue