Update change log and spec for wrt-plugins-tizen_0.4.70
[framework/web/wrt-plugins-tizen.git] / src / NFC / JSNFCTag.h
index 6f50bef..393693a 100755 (executable)
 
 #include <JavaScriptCore/JavaScript.h>
 #include <CommonsJavaScript/PrivateObject.h>
+#include <Security.h>
 #include "INFCTag.h"
+#include "EventNFCChangedPrivateData.h"
+
 
 namespace DeviceAPI {
 namespace NFC {
 
-typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<INFCTagPtr, WrtDeviceApis::CommonsJavaScript::NoOwnership> NFCTagPrivObject;
+typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<INFCTagPtr, WrtDeviceApis::CommonsJavaScript::NoOwnership> NFCTagPrivObjectBase;
+class  NFCTagPrivObject :
+    public DeviceAPI::Common::SecurityAccessor,
+    public NFCTagPrivObjectBase
+{
+public:
+     NFCTagPrivObject(JSContextRef context, INFCTagPtr nfcTag) :
+        DeviceAPI::Common::SecurityAccessor(),
+        NFCTagPrivObjectBase(context, nfcTag)
+    {
+    }
+
+    virtual ~NFCTagPrivObject()
+    {
+    }
+};
 
 class JSNFCTag
 {
@@ -37,7 +55,7 @@ public:
 
     static const JSClassRef getClassRef();
 
-    static JSObjectRef createJSObject(JSContextRef context, void *tagHandle);
+    static JSObjectRef createJSObject(JSContextRef context, void *tagHandle, EventNFCChangedPrivateDataPtr eventNFCChangedPriv);
 
 private:
     /**