#include <vector>
#include <dpl/shared_ptr.h>
#include "ContactTypes.h"
+#include <JavaScriptCore/JavaScript.h>
namespace DeviceAPI {
namespace Contact {
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;
bool m_isDefault;
ContactPhoneNumberTypeArrayPtr m_types;
+
+ bool is_typesSetJSArray;
+ JSValueRef m_typesJsValue;
+ JSObjectRef m_typesObj;
+
+ JSContextRef m_context;
};
} // Contact