aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-10-15 19:57:24 +0200
committerdec05eba <dec05eba@protonmail.com>2019-10-15 19:57:27 +0200
commit56acc142c6ef9a65147acdea6737acbfaeb7eca4 (patch)
tree1b9a955bec7ed74c16e3cf663b9acca5aef8c19e /include/Body.hpp
parent2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 (diff)
Add tor support
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index a2db62a..c394519 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -8,6 +8,8 @@
#include <thread>
namespace QuickMedia {
+ class Program;
+
class BodyItem {
public:
BodyItem(const std::string &_title): title(_title), visible(true) {
@@ -24,7 +26,7 @@ namespace QuickMedia {
class Body {
public:
- Body(sf::Font &font);
+ Body(Program *program, sf::Font &font);
// Select previous item, ignoring invisible items
void select_previous_item();
@@ -56,6 +58,7 @@ namespace QuickMedia {
std::string url;
std::shared_ptr<sf::Texture> texture;
};
+ Program *program;
std::shared_ptr<sf::Texture> load_thumbnail_from_url(const std::string &url);
std::vector<ThumbnailData> item_thumbnail_textures;
bool loading_thumbnail;