tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSDirectoryEntrySync.h
1 /*
2     This file is part of the WebKit open source project.
3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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 JSDirectoryEntrySync_h
22 #define JSDirectoryEntrySync_h
23
24 #if ENABLE(FILE_SYSTEM)
25
26 #include "DirectoryEntrySync.h"
27 #include "JSDOMBinding.h"
28 #include "JSEntrySync.h"
29 #include <runtime/JSObject.h>
30
31 namespace WebCore {
32
33 class JSDirectoryEntrySync : public JSEntrySync {
34 public:
35     typedef JSEntrySync Base;
36     static JSDirectoryEntrySync* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<DirectoryEntrySync> impl)
37     {
38         JSDirectoryEntrySync* ptr = new (JSC::allocateCell<JSDirectoryEntrySync>(globalObject->globalData().heap)) JSDirectoryEntrySync(structure, globalObject, impl);
39         ptr->finishCreation(globalObject->globalData());
40         return ptr;
41     }
42
43     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
44     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
45     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
46     static const JSC::ClassInfo s_info;
47
48     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
49     {
50         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
51     }
52
53     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
54
55     // Custom functions
56     JSC::JSValue getFile(JSC::ExecState*);
57     JSC::JSValue getDirectory(JSC::ExecState*);
58     DirectoryEntrySync* impl() const
59     {
60         return static_cast<DirectoryEntrySync*>(Base::impl());
61     }
62 protected:
63     JSDirectoryEntrySync(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<DirectoryEntrySync>);
64     void finishCreation(JSC::JSGlobalData&);
65     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
66 };
67
68 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DirectoryEntrySync*);
69 DirectoryEntrySync* toDirectoryEntrySync(JSC::JSValue);
70
71 class JSDirectoryEntrySyncPrototype : public JSC::JSNonFinalObject {
72 public:
73     typedef JSC::JSNonFinalObject Base;
74     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
75     static JSDirectoryEntrySyncPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
76     {
77         JSDirectoryEntrySyncPrototype* ptr = new (JSC::allocateCell<JSDirectoryEntrySyncPrototype>(globalData.heap)) JSDirectoryEntrySyncPrototype(globalData, globalObject, structure);
78         ptr->finishCreation(globalData);
79         return ptr;
80     }
81
82     static const JSC::ClassInfo s_info;
83     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
84     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
85     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
86     {
87         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
88     }
89
90 private:
91     JSDirectoryEntrySyncPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
92 protected:
93     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
94 };
95
96 class JSDirectoryEntrySyncConstructor : public DOMConstructorObject {
97 private:
98     JSDirectoryEntrySyncConstructor(JSC::Structure*, JSDOMGlobalObject*);
99     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
100
101 public:
102     typedef DOMConstructorObject Base;
103     static JSDirectoryEntrySyncConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
104     {
105         JSDirectoryEntrySyncConstructor* ptr = new (JSC::allocateCell<JSDirectoryEntrySyncConstructor>(*exec->heap())) JSDirectoryEntrySyncConstructor(structure, globalObject);
106         ptr->finishCreation(exec, globalObject);
107         return ptr;
108     }
109
110     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
111     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
112     static const JSC::ClassInfo s_info;
113     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
114     {
115         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
116     }
117 protected:
118     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
119 };
120
121 // Functions
122
123 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionCreateReader(JSC::ExecState*);
124 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionGetFile(JSC::ExecState*);
125 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionGetDirectory(JSC::ExecState*);
126 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionRemoveRecursively(JSC::ExecState*);
127 // Attributes
128
129 JSC::JSValue jsDirectoryEntrySyncConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
130
131 } // namespace WebCore
132
133 #endif // ENABLE(FILE_SYSTEM)
134
135 #endif