blob: 2026319987f76e60d71b8b37f474e80ef1506bc6 (
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
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "../include/Body.hpp"
#include "../include/DownloadUtils.hpp"
#include <stddef.h>
namespace QuickMedia {
enum class PluginResult {
OK,
ERR,
NET_ERR
};
enum class SearchResult {
OK,
ERR,
NET_ERR
};
enum class SuggestionResult {
OK,
ERR,
NET_ERR
};
enum class ImageResult {
OK,
END,
ERR,
NET_ERR
};
struct BodyItemImageContext {
BodyItems *body_items;
size_t index;
};
SuggestionResult download_result_to_suggestion_result(DownloadResult download_result);
PluginResult download_result_to_plugin_result(DownloadResult download_result);
SearchResult download_result_to_search_result(DownloadResult download_result);
ImageResult download_result_to_image_result(DownloadResult download_result);
PluginResult search_result_to_plugin_result(SearchResult search_result);
}
|