• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2     Copyright (C) 2009-2010 ProFUSION embedded systems
3     Copyright (C) 2009-2010 Samsung Electronics
4 
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Library General Public
7     License as published by the Free Software Foundation; either
8     version 2 of the License, or (at your option) any later version.
9 
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13     Library General Public License for more details.
14 
15     You should have received a copy of the GNU Library General Public License
16     along with this library; see the file COPYING.LIB.  If not, write to
17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18     Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef ewk_settings_h
22 #define ewk_settings_h
23 
24 #include "ewk_eapi.h"
25 
26 #include <Eina.h>
27 #include <Evas.h>
28 #include <cairo.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /**
35  * @file ewk_settings.h
36  *
37  * @brief General purpose settings, not tied to any view object.
38  */
39 
40 EAPI uint64_t         ewk_settings_web_database_default_quota_get(void);
41 EAPI void             ewk_settings_web_database_path_set(const char *path);
42 EAPI const char      *ewk_settings_web_database_path_get(void);
43 
44 EAPI Eina_Bool        ewk_settings_icon_database_path_set(const char *path);
45 EAPI const char      *ewk_settings_icon_database_path_get(void);
46 EAPI Eina_Bool        ewk_settings_icon_database_clear(void);
47 
48 EAPI cairo_surface_t *ewk_settings_icon_database_icon_surface_get(const char *url);
49 EAPI Evas_Object     *ewk_settings_icon_database_icon_object_add(const char *url, Evas *canvas);
50 
51 EAPI Eina_Bool        ewk_settings_cache_directory_path_set(const char *path);
52 EAPI const char      *ewk_settings_cache_directory_path_get(void);
53 
54 EAPI void             ewk_settings_proxy_uri_set(const char* proxy);
55 EAPI const char*      ewk_settings_proxy_uri_get(void);
56 
57 EAPI Eina_Bool        ewk_settings_cache_enable_get(void);
58 EAPI void             ewk_settings_cache_enable_set(Eina_Bool set);
59 EAPI void             ewk_settings_cache_capacity_set(unsigned capacity);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 #endif // ewk_settings_h
65