#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_REQUEST_HPP #define APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_REQUEST_HPP #include #include #include #include #include #include #include namespace app::browser::main::tab::page::navigation { class Request : public Gtk::Entry { // Actions Glib::RefPtr action__refresh, action__update; // Extras double progress_fraction; Glib::ustring scheme, host, port, path, query; // Defaults const bool HEXPAND = true; const double PROGRESS_PULSE_STEP = .1; const int PROGRESS_ANIMATION_TIME = 10; // Private helpers void parse(); public: Request( const Glib::RefPtr & ACTION__REFRESH, const Glib::RefPtr & ACTION__UPDATE ); // Actions void refresh( const double & PROGRESS_FRACTION ); // Getters Glib::ustring get_scheme(); Glib::ustring get_host(); Glib::ustring get_port(); Glib::ustring get_path(); Glib::ustring get_query(); }; } #endif // APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_REQUEST_HPP