tizen beta release
[profile/ivi/webkit-efl.git] / debian / tmp / usr / include / ewebkit-0 / ewk_network.h
1 /*
2     Copyright (C) 2011 Samsung Electronics
3
4     This library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Library General Public
6     License as published by the Free Software Foundation; either
7     version 2 of the License, or (at your option) any later version.
8
9     This library is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12     Library General Public License for more details.
13
14     You should have received a copy of the GNU Library General Public License
15     along with this library; see the file COPYING.LIB.  If not, write to
16     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17     Boston, MA 02110-1301, USA.
18 */
19
20 /**
21  * @file    ewk_network.h
22  * @brief   Describes the network API.
23  */
24
25 #ifndef ewk_network_h
26 #define ewk_network_h
27
28 #include <Eina.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /**
35  * Sets the given proxy URI to network backend.
36  *
37  * @param proxy URI to set
38  */
39 EAPI void             ewk_network_proxy_uri_set(const char *proxy);
40
41 /**
42  * Gets the proxy URI from the network backend.
43  *
44  * The returned string should be freed by eina_stringshare_del() after use.
45  *
46  * @return current proxy URI or @c 0 if it's not set
47  */
48 EAPI const char      *ewk_network_proxy_uri_get(void);
49
50 /**
51  * Sets if network backend is online or not.
52  * 
53  * @param online @c EINA_FALSE if network is disconnected
54  */
55 EAPI void             ewk_network_state_notifier_online_set(Eina_Bool online);
56
57 EAPI void ewk_network_session_requests_cancel(void);
58
59 EAPI void ewk_network_http_request_append(const char* name, const char* value);
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif // ewk_network_h