summaryrefslogtreecommitdiff
path: root/mobile_src/Bluetooth/JSBluetoothManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Bluetooth/JSBluetoothManager.h')
-rw-r--r--mobile_src/Bluetooth/JSBluetoothManager.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/mobile_src/Bluetooth/JSBluetoothManager.h b/mobile_src/Bluetooth/JSBluetoothManager.h
new file mode 100644
index 0000000..87c8b75
--- /dev/null
+++ b/mobile_src/Bluetooth/JSBluetoothManager.h
@@ -0,0 +1,93 @@
+//
+// Tizen Web Device API
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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.
+//
+
+#ifndef __TIZEN_JS_BLUETOOTH_MANAGER_H__
+#define __TIZEN_JS_BLUETOOTH_MANAGER_H__
+
+#include <JavaScriptCore/JavaScript.h>
+#include <PropertyBag.h>
+#include <memory>
+#include <Security.h>
+
+namespace DeviceAPI {
+namespace Bluetooth {
+
+
+class JSBluetoothManagerPriv :
+ public DeviceAPI::Common::SecurityAccessor,
+ public DeviceAPI::Common::PropertyBag
+{
+public:
+ JSBluetoothManagerPriv() :
+ DeviceAPI::Common::SecurityAccessor(),
+ DeviceAPI::Common::PropertyBag()
+ {
+ }
+ virtual ~JSBluetoothManagerPriv() {}
+};
+
+class JSBluetoothManager
+{
+public:
+ static const JSClassDefinition* getClassInfo();
+ static const JSClassRef getClassRef();
+
+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);
+
+ static JSValueRef getReadOnlyProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
+
+ static JSValueRef getDefaultAdapter(JSContextRef context,
+ JSObjectRef object,
+ JSObjectRef thisObject,
+ size_t argumentCount,
+ const JSValueRef arguments[],
+ JSValueRef* exception);
+
+ /**
+ * This member variable contains the values which has to be passed
+ * when the this class is embedded into JS Engine.
+ */
+ static JSClassDefinition m_classInfo;
+
+ /**
+ * This structure describes a statically declared function property.
+ */
+ static JSStaticFunction m_function[];
+
+ static JSStaticValue m_property[];
+
+ static JSClassRef m_jsClassRef;
+
+};
+
+
+
+} // Bluetooth
+} // DeviceAPI
+
+#endif // __TIZEN_JS_DOWNLOAD_MANAGER_H__