2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
20 * @author Kisub Song (kisubs.song@samsung.com)
25 #ifndef _PLATFORM_CONTACT_CONTACT_H_
26 #define _PLATFORM_CONTACT_CONTACT_H_
36 class Contact : public IContact
42 virtual std::string convertToString(const std::string &format);
44 virtual void setContactFromString(const std::string &vObjectStr);
46 contacts_record_h getPlatformContactObject() const { return m_platformContactObject; };
48 void setNotesJSObj(bool value, JSObjectRef initObj);
49 bool notesJSObjIsSet() const;
50 JSObjectRef getNotesJSObj();
51 JSValueRef getNotesJSValue();
53 void setGroupIdsJSObj(bool value, JSObjectRef initObj);
54 bool groupIdsJSObjIsSet() const;
55 JSObjectRef getGroupIdsJSObj();
56 JSValueRef getGroupIdsJSValue();
58 void setContext(JSContextRef contextRef);
59 JSContextRef getContext();
62 contacts_record_h m_platformContactObject;
63 contacts_list_h m_platformContactObjectList;
65 bool m_notesJSObjIsSet;
66 JSObjectRef m_notesObj;
67 JSValueRef m_notesJSValue;
69 bool m_groupIdsJSObjIsSet;
70 JSObjectRef m_groupIdsObj;
71 JSValueRef m_groupIdsJSValue;
73 JSContextRef m_context;
79 #endif // _PLATFORM_CONTACT_CONTACT_H_