#ifndef APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP #define APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP #include #include #include #include #include #include namespace app::browser::main::tab::page::navbar { namespace history { class Back; class Forward; } class History : public Gtk::Box { // Extras struct Memory { Glib::ustring request; std::time_t time; // event unix time bool permanent; // save in database (on application close) @TODO }; std::vector memory; std::vector::iterator memory_index; // Components history::Back * historyBack; history::Forward * historyForward; public: History(); void back(); void forward(); void push( const Glib::ustring & REQUEST ); void refresh(); }; } #endif // APP_BROWSER_MAIN_TAB_PAGE_NAVBAR_HISTORY_HPP