#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:
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