#ifndef APP_BROWSER_MAIN_TAB_PAGE_HPP #define APP_BROWSER_MAIN_TAB_PAGE_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include namespace app::browser::main::tab { namespace page { class Content; class Navbar; class Progressbar; } class Page : public Gtk::Box { // Extras Glib::ustring title; Glib::ustring subtitle; // Socket char buffer[0xfffff]; // 1Mb Glib::RefPtr GioSocketClient_RefPtr; Glib::RefPtr GioSocketConnection_RefPtr; // Components page::Content * pageContent; page::Navbar * pageNavbar; page::Progressbar * pageProgressbar; // Helpers void set( const Glib::ustring & TITLE, const Glib::ustring & SUBTITLE, const double & PROGRESS ); public: Page( const Glib::ustring & TITLE, const Glib::ustring & SUBTITLE = "", const Glib::ustring & REQUEST = "" ); // Getters Glib::ustring get_title(); Glib::ustring get_subtitle(); // Actions void back(); void forward(); void update(); }; } #endif // APP_BROWSER_MAIN_TAB_PAGE_HPP