1 /*
2  * Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3  *           (C) 2020 Vladimir Sadovnikov <sadko4u@gmail.com>
4  *
5  * This file is part of lsp-plugins
6  * Created on: 27 авг. 2019 г.
7  *
8  * lsp-plugins is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * any later version.
12  *
13  * lsp-plugins is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with lsp-plugins. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef UI_TK_HELPERS_MIME_H_
23 #define UI_TK_HELPERS_MIME_H_
24 
25 #include <core/LSPString.h>
26 #include <core/io/IInStream.h>
27 #include <core/io/IInSequence.h>
28 
29 namespace lsp
30 {
31     namespace tk
32     {
33         status_t fetch_text_uri_list_item(LSPString *dst, const char *protocol, const LSPString *src);
34         status_t fetch_text_uri_list_item(LSPString *dst, const char *protocol, io::IInStream *is, const char *charset = NULL);
35         status_t fetch_text_uri_list_item(LSPString *dst, const char *protocol, io::IInSequence *is);
36         status_t fetch_text_uri_list_item(LSPString *dst, const char *protocol, const void *src, size_t bytes, const char *charset = NULL);
37 
38         status_t fetch_text_x_moz_url_item(LSPString *dst, const char *protocol, const LSPString *src);
39         status_t fetch_text_x_moz_url_item(LSPString *dst, const char *protocol, io::IInStream *is, const char *charset = NULL);
40         status_t fetch_text_x_moz_url_item(LSPString *dst, const char *protocol, io::IInSequence *is);
41         status_t fetch_text_x_moz_url_item(LSPString *dst, const char *protocol, const void *src, size_t bytes, const char *charset = NULL);
42 
43         status_t fetch_application_x_kde4_urilist_item(LSPString *dst, const char *protocol, const LSPString *src);
44         status_t fetch_application_x_kde4_urilist_item(LSPString *dst, const char *protocol, io::IInStream *is, const char *charset = NULL);
45         status_t fetch_application_x_kde4_urilist_item(LSPString *dst, const char *protocol, io::IInSequence *is);
46         status_t fetch_application_x_kde4_urilist_item(LSPString *dst, const char *protocol, const void *src, size_t bytes, const char *charset = NULL);
47     }
48 }
49 
50 
51 
52 #endif /* UI_TK_HELPERS_MIME_H_ */
53