blob: 72df76489047a236b80b44e2edd0ced4bf67d9de (
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
44
|
#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 BodyItemContext {
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);
SearchResult plugin_result_to_search_result(PluginResult plugin_result);
}
|