From b97c4c3ccad3c917e2073329e8d1c7b7351e96aa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 13 Sep 2021 21:30:39 +0200 Subject: Include refactoring --- include/Body.hpp | 8 ++++---- include/QuickMedia.hpp | 5 ++--- include/Storage.hpp | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index 2a82406..65645e9 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -1,13 +1,9 @@ #pragma once #include "BodyItem.hpp" -#include "AsyncImageLoader.hpp" #include "RoundedRectangle.hpp" #include #include -#include -#include -#include namespace sf { class RenderWindow; @@ -16,6 +12,10 @@ namespace sf { class Event; } +namespace Json { + class Value; +} + namespace QuickMedia { using BodyItemRenderCallback = std::function &body_item)>; // Return true to merge diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 56e9d3f..19c634e 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -1,9 +1,7 @@ #pragma once #include "Body.hpp" -#include "SearchBar.hpp" #include "Page.hpp" -#include "Storage.hpp" #include "Tab.hpp" #include "MessageQueue.hpp" #include "AsyncTask.hpp" @@ -14,8 +12,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -32,6 +30,7 @@ namespace QuickMedia { class VideoPage; class Tabs; class VideoPlayer; + class SearchBar; enum class ImageViewMode { SINGLE, diff --git a/include/Storage.hpp b/include/Storage.hpp index 9107bb2..1bf44a9 100644 --- a/include/Storage.hpp +++ b/include/Storage.hpp @@ -2,7 +2,6 @@ #include "Path.hpp" #include -#include #include namespace Json { @@ -11,7 +10,7 @@ namespace Json { namespace QuickMedia { // Return false to stop the iterator - using FileIteratorCallback = std::function; + using FileIteratorCallback = std::function; enum class FileType { FILE_NOT_FOUND, -- cgit v1.2.3