blob: d5839c732b5d998c3e4b4530912aeadf90e05585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "SearchBar.hpp"
#include "Page.hpp"
#include <vector>
#include <memory>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
namespace QuickMedia {
class Body;
class Plugin;
class Program {
public:
Program();
~Program();
void run();
private:
void base_event_handler(sf::Event &event);
void search_suggestion_page();
void search_result_page();
void video_content_page();
private:
sf::RenderWindow window;
sf::Vector2f window_size;
sf::Font font;
Body *body;
Plugin *current_plugin;
std::unique_ptr<SearchBar> search_bar;
Page current_page;
std::string video_url;
};
}
|