Update change log and spec for wrt-plugins-tizen_0.4.70
[framework/web/wrt-plugins-tizen.git] / src / NFC / JSNFCAdapter.h
index f910f18..bf71a72 100755 (executable)
 
 #include <JavaScriptCore/JavaScript.h>
 #include <CommonsJavaScript/PrivateObject.h>
+#include <Security.h>
 #include "INFCAdapter.h"
+#include "JSNFCManager.h"
 
 namespace DeviceAPI {
 namespace NFC {
 
-typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<INFCAdapterPtr, WrtDeviceApis::CommonsJavaScript::NoOwnership> NFCAdapterPrivObject;
+typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<INFCAdapterPtr, WrtDeviceApis::CommonsJavaScript::NoOwnership> NFCAdapterPrivObjectBase;
+class  NFCAdapterPrivObject :
+    public DeviceAPI::Common::SecurityAccessor,
+    public NFCAdapterPrivObjectBase
+{
+public:
+     NFCAdapterPrivObject(JSContextRef context, INFCAdapterPtr adapter) :
+        DeviceAPI::Common::SecurityAccessor(),
+        NFCAdapterPrivObjectBase(context, adapter)
+    {
+    }
+
+    virtual ~ NFCAdapterPrivObject()
+    {
+    }
+};
+
 class JSNFCAdapter
 {
 public:
@@ -36,7 +54,7 @@ public:
 
     static const JSClassRef getClassRef();
 
-    static JSObjectRef createJSObject(JSContextRef context);
+    static JSObjectRef createJSObject(JSContextRef context, NFCManagerPrivObject *nfcManagerPriv);
 private:
     /**
      * This member variable contains the values which has to be passed when