#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
{
static const JSClassRef getClassRef();
- static JSObjectRef createJSObject(JSContextRef context, void *tagHandle);
+ static JSObjectRef createJSObject(JSContextRef context, void *tagHandle, EventNFCChangedPrivateDataPtr eventNFCChangedPriv);
private:
/**