Update change log and spec for wrt-plugins-tizen_0.4.9
[platform/framework/web/wrt-plugins-tizen.git] / src / Contact / ContactPhoneNumber.h
index a2c2256..ac1445f 100755 (executable)
@@ -30,6 +30,7 @@
 #include <vector>
 #include <dpl/shared_ptr.h>
 #include "ContactTypes.h"
+#include <JavaScriptCore/JavaScript.h>
 
 namespace DeviceAPI {
 namespace Contact {
@@ -67,6 +68,14 @@ public:
        void clear();
        ContactPhoneNumberPtr clone() const;
 
+       void setTypesJSArray(bool value, JSObjectRef initValue);
+       JSValueRef getTypesJSArray();
+       JSObjectRef getTypesJSObj();
+       bool IsTypesSetJSArray() const;
+
+       void setContext(JSContextRef contextRef);
+       JSContextRef getContext();
+
 private:
        std::string     m_number;
        bool            m_numberIsSet;
@@ -74,6 +83,12 @@ private:
        bool            m_isDefault;
 
        ContactPhoneNumberTypeArrayPtr m_types;
+
+       bool is_typesSetJSArray;
+       JSValueRef m_typesJsValue;
+       JSObjectRef m_typesObj;
+
+       JSContextRef m_context;
 };
 
 } // Contact