summaryrefslogtreecommitdiff
path: root/src/standards/Tizen/Geocoder/JSCoordinates.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/standards/Tizen/Geocoder/JSCoordinates.h')
-rw-r--r--src/standards/Tizen/Geocoder/JSCoordinates.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/standards/Tizen/Geocoder/JSCoordinates.h b/src/standards/Tizen/Geocoder/JSCoordinates.h
new file mode 100644
index 0000000..e6509ca
--- /dev/null
+++ b/src/standards/Tizen/Geocoder/JSCoordinates.h
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+/*
+ * @file JSCoordinates.h
+ * @author
+ * @version 0.1
+ * @brief Declaration of the JSCoordiates class
+ */
+
+#ifndef WRTPLUGINS_TIZEN_JS_COORDINATES_H_
+#define WRTPLUGINS_TIZEN_JS_COORDINATES_H_
+
+#include <JavaScriptCore/JavaScript.h>
+#include <CommonsJavaScript/PrivateObject.h>
+#include <dpl/shared_ptr.h>
+#include <API/Geocoder/GeocoderProperties.h>
+
+namespace TizenApis {
+namespace Tizen1_0 {
+
+typedef WrtDeviceApis::CommonsJavaScript::PrivateObjectT<Api::Geocoder::GeocoderProperties*>::Type JSCoordinatesPriv;
+
+class JSCoordinates {
+public:
+ static const JSClassDefinition* getClassInfo();
+
+ static const JSClassRef getClassRef();
+
+ static JSObjectRef createJSObject(JSContextRef context, const Api::Geocoder::GeocoderProperties &geocoderProperties);
+
+private:
+ /**
+ * The callback invoked when an object is first created.
+ */
+ static void initialize(JSContextRef context, JSObjectRef object);
+
+ /**
+ * The callback invoked when an object is finalized.
+ */
+ static void finalize(JSObjectRef object);
+
+ /**
+ * The callback invoked when getting a property's value.
+ */
+ static JSValueRef getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
+
+ /**
+ * The callback invoked when an object is used as the target of an 'instanceof' expression.
+ */
+ static bool hasInstance(JSContextRef context, JSObjectRef constructor, JSValueRef possibleInstance, JSValueRef* exception);
+
+ /**
+ * This structure contains properties and callbacks that define a type of object.
+ */
+ static JSClassDefinition m_classInfo;
+
+ /**
+ * This structure describes a statically declared value property.
+ */
+ static JSStaticValue m_property[];
+
+ static JSClassRef m_jsClassRef;
+};
+
+} // Tizen1_0
+} // WrtPlugins
+
+#endif
+