2 Copyright (C) 2011 Samsung Electronics
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.
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.
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
19 #ifndef WebKitDOM_DOMApplicationCache_h
20 #define WebKitDOM_DOMApplicationCache_h
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_EventTarget.h>
30 #define WEBKITDOM_DOMAPPLICATIONCACHE_INIT(objPtr) \
31 (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32 (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_domapplicationcache_deinit
34 struct _WebKitDOM_DOMApplicationCache {
35 WebKitDOM_EventTarget parent_object;
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
45 EAPI unsigned short ewk_webkitdom_domapplicationcache_get_status(WebKitDOM_DOMApplicationCache* self);
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*);
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*);
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*);
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*);
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*);
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*);
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*);
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*);
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);
78 EAPI void ewk_webkitdom_domapplicationcache_deinit(const WebKitDOM_Object*);
79 EAPI void _copy_webkit_domapplicationcache(WebKitDOM_DOMApplicationCache* kitObjSrc, WebKitDOM_DOMApplicationCache* ret);