Update change log and spec for wrt-plugins-tizen_0.4.70
[framework/web/wrt-plugins-tizen.git] / src / Calendar / JSCalendar.h
index ee2486b..03895f4 100755 (executable)
@@ -25,6 +25,7 @@
 #include <CommonsJavaScript/PrivateObject.h>
 #include "ICalendar.h"
 #include <CommonsJavaScript/JSCallbackManager.h>
+#include <Security.h>
 
 namespace DeviceAPI {
 namespace Calendar {
@@ -34,7 +35,23 @@ namespace Calendar {
 #define TIZEN_CALENDAR_PROPERTY_ID "id"
 
 typedef WrtDeviceApis::CommonsJavaScript::PrivateObject<ICalendarPtr,
-                               WrtDeviceApis::CommonsJavaScript::NoOwnership> CalendarPrivObject;
+                               WrtDeviceApis::CommonsJavaScript::NoOwnership> CalendarPrivObjectBase;
+
+class CalendarPrivObject :
+    public CalendarPrivObjectBase,
+    public DeviceAPI::Common::SecurityAccessor
+{
+public:
+    CalendarPrivObject(JSContextRef context, ICalendarPtr calendar) :
+        CalendarPrivObjectBase(context, calendar),
+        DeviceAPI::Common::SecurityAccessor()
+    {
+    }
+
+    virtual ~CalendarPrivObject()
+    {
+    }
+};
 
 class JSCalendar
 {