#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 namespace app::browser::main::tab { namespace page { class Content; class Navigation; class Progress; } class Page : public Gtk::Box { // Extras Glib::ustring title; Glib::ustring subtitle; // Socket char buffer[0xfffff]; // 1Mb Glib::RefPtr GioSocketClient; Glib::RefPtr GioSocketConnection; // Components page::Content * pageContent; page::Navigation * pageNavigation; page::Progress * pageProgress; public: Page( const Glib::ustring & TITLE, const Glib::ustring & SUBTITLE = "", const Glib::ustring & REQUEST = "" ); // Getters Glib::ustring get_title(); Glib::ustring get_subtitle(); // Actions bool navigation_history_try_back(); bool navigation_history_try_forward(); void refresh( const Glib::ustring & TITLE, const Glib::ustring & SUBTITLE, const double & PROGRESS ); void navigation_update( const bool & HISTORY = false ); }; } #endif // APP_BROWSER_MAIN_TAB_PAGE_HPP