Yoda/src/app/browser/main/tab/page.hpp

45 lines
912 B
C++
Raw Normal View History

2024-08-15 18:52:11 +03:00
#ifndef APP_BROWSER_MAIN_TAB_PAGE_HPP
#define APP_BROWSER_MAIN_TAB_PAGE_HPP
2024-08-13 08:07:56 +03:00
2024-08-14 07:56:34 +03:00
#include <giomm/simpleactiongroup.h>
2024-08-14 11:30:05 +03:00
#include <glibmm/refptr.h>
#include <gtkmm/box.h>
2024-08-14 07:56:34 +03:00
#include <sigc++/functors/mem_fun.h>
2024-08-13 08:07:56 +03:00
2024-08-16 10:00:23 +03:00
#include <giomm/asyncresult.h>
#include <giomm/socketconnection.h>
#include <giomm/socketclient.h>
2024-08-13 08:07:56 +03:00
namespace app::browser::main::tab
{
2024-08-15 18:52:11 +03:00
namespace page
2024-08-13 08:48:17 +03:00
{
class Navbar;
2024-08-14 11:30:05 +03:00
class Content;
2024-08-13 08:48:17 +03:00
}
2024-08-15 18:52:11 +03:00
class Page : public Gtk::Box
2024-08-13 08:07:56 +03:00
{
2024-08-13 08:48:17 +03:00
private:
2024-08-14 07:56:34 +03:00
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
2024-08-16 10:00:23 +03:00
Glib::RefPtr<Gio::SocketClient> socket_client;
2024-08-14 07:56:34 +03:00
2024-08-15 18:52:11 +03:00
page::Navbar * navbar;
page::Content * content;
2024-08-13 08:48:17 +03:00
2024-08-16 10:00:23 +03:00
void connect(
const std::string & host,
int port
);
2024-08-13 08:07:56 +03:00
public:
2024-08-15 18:52:11 +03:00
Page();
~Page();
2024-08-14 07:56:34 +03:00
void update();
2024-08-13 08:07:56 +03:00
};
}
2024-08-15 18:52:11 +03:00
#endif // APP_BROWSER_MAIN_TAB_PAGE_HPP