merge wrt-plugins-tizen_0.2.0-2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Contact / ContactOrganization.cpp
index b628afa..715494f 100755 (executable)
@@ -137,9 +137,42 @@ bool ContactOrganization::getLogoURIIsSet() const
        return m_logoURIIsSet;
 }
 
+void ContactOrganization::clear()
+{
+       m_name = "";
+       m_department = "";
+       m_office = "";
+       m_title = "";
+       m_role = "";
+       m_logoURI = "";
+
+       m_nameIsSet = false;
+       m_departmentIsSet = false;
+       m_officeIsSet = false;
+       m_titleIsSet = false;
+       m_roleIsSet = false;
+       m_logoURIIsSet = false;
+}
+
 ContactOrganizationPtr ContactOrganization::clone() const
 {
-       return ContactOrganizationPtr(new ContactOrganization(*this));
+       ContactOrganizationPtr result(new ContactOrganization());
+
+       result->m_name = m_name;
+       result->m_department = m_department;
+       result->m_office = m_office;
+       result->m_title = m_title;
+       result->m_role = m_role;
+       result->m_logoURI = m_logoURI;
+
+       result->m_nameIsSet = m_nameIsSet;
+       result->m_departmentIsSet = m_departmentIsSet;
+       result->m_officeIsSet = m_officeIsSet;
+       result->m_titleIsSet = m_titleIsSet;
+       result->m_roleIsSet = m_roleIsSet;
+       result->m_logoURIIsSet = m_logoURIIsSet;
+
+       return result;
 }
 
 } // Contact