tizen beta release
[framework/web/webkit-efl.git] / debian / libwebkit-engine-dev / usr / include / ewebkit-0 / WebKitDOM_DOMApplicationCache.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 Lesser General Public
6     License as published by the Free Software Foundation; either
7     version 2.1 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     Lesser General Public License for more details.
13
14     You should have received a copy of the GNU Lesser General Public
15     License along with this library; if not, write to the Free Software
16     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19 #ifndef WebKitDOM_DOMApplicationCache_h
20 #define WebKitDOM_DOMApplicationCache_h
21
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_EventTarget.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29
30 #define WEBKITDOM_DOMAPPLICATIONCACHE_INIT(objPtr) \
31     (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32     (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_domapplicationcache_deinit
33
34 struct _WebKitDOM_DOMApplicationCache {
35     WebKitDOM_EventTarget parent_object;
36 };
37
38 #define    WEBKITDOM_UNCACHED        0
39 #define    WEBKITDOM_IDLE        1
40 #define    WEBKITDOM_CHECKING        2
41 #define    WEBKITDOM_DOWNLOADING        3
42 #define    WEBKITDOM_UPDATEREADY        4
43 #define    WEBKITDOM_OBSOLETE        5
44
45 EAPI unsigned short ewk_webkitdom_domapplicationcache_get_status(WebKitDOM_DOMApplicationCache* self);
46
47 EAPI void ewk_webkitdom_domapplicationcache_get_onchecking(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
48 EAPI void ewk_webkitdom_domapplicationcache_set_onchecking(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
49
50 EAPI void ewk_webkitdom_domapplicationcache_get_onerror(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
51 EAPI void ewk_webkitdom_domapplicationcache_set_onerror(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
52
53 EAPI void ewk_webkitdom_domapplicationcache_get_onnoupdate(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
54 EAPI void ewk_webkitdom_domapplicationcache_set_onnoupdate(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
55
56 EAPI void ewk_webkitdom_domapplicationcache_get_ondownloading(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
57 EAPI void ewk_webkitdom_domapplicationcache_set_ondownloading(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
58
59 EAPI void ewk_webkitdom_domapplicationcache_get_onprogress(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
60 EAPI void ewk_webkitdom_domapplicationcache_set_onprogress(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
61
62 EAPI void ewk_webkitdom_domapplicationcache_get_onupdateready(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
63 EAPI void ewk_webkitdom_domapplicationcache_set_onupdateready(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
64
65 EAPI void ewk_webkitdom_domapplicationcache_get_oncached(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
66 EAPI void ewk_webkitdom_domapplicationcache_set_oncached(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
67
68 EAPI void ewk_webkitdom_domapplicationcache_get_onobsolete(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener* ret);
69 EAPI void ewk_webkitdom_domapplicationcache_set_onobsolete(WebKitDOM_DOMApplicationCache* self, WebKitDOM_EventListener*);
70
71
72 EAPI void ewk_webkitdom_domapplicationcache_update(WebKitDOM_DOMApplicationCache* self);
73 EAPI void ewk_webkitdom_domapplicationcache_swap_cache(WebKitDOM_DOMApplicationCache* self);
74 EAPI void ewk_webkitdom_domapplicationcache_add_event_listener(WebKitDOM_DOMApplicationCache* self, WebKitDOM_String* type, WebKitDOM_EventListener* listener, Eina_Bool useCapture);
75 EAPI void ewk_webkitdom_domapplicationcache_remove_event_listener(WebKitDOM_DOMApplicationCache* self, WebKitDOM_String* type, WebKitDOM_EventListener* listener, Eina_Bool useCapture);
76 EAPI Eina_Bool ewk_webkitdom_domapplicationcache_dispatch_event(WebKitDOM_DOMApplicationCache* self, WebKitDOM_Event* evt);
77
78 EAPI void ewk_webkitdom_domapplicationcache_deinit(const WebKitDOM_Object*);
79 EAPI void _copy_webkit_domapplicationcache(WebKitDOM_DOMApplicationCache* kitObjSrc, WebKitDOM_DOMApplicationCache* ret);
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif
86