[Contact] Refactoring API structures
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Contact / ContactPhoneNumber.h
index cb94748..93de741 100755 (executable)
@@ -52,21 +52,23 @@ public:
 
        std::string getNumber() const;
        void setNumber(const std::string &value);
+       void unsetNumber();
        bool getNumberIsSet() const;
 
-       StringArrayPtr getTypes() const;
-       void setTypes(const StringArrayPtr &value);
-       void addType(const std::string value);
-       bool isTypeOf(std::string value) const;
+       ContactPhoneNumberTypeArrayPtr getTypes() const;
+       void setTypes(const ContactPhoneNumberTypeArrayPtr &value);
+       void addType(const ContactPhoneNumberType value);
+       bool isTypeOf(const ContactPhoneNumberType value) const;
        int getTypesNum() const;
 
+       void clear();
        ContactPhoneNumberPtr clone() const;
 
 private:
-       std::string m_number;
-       StringArrayPtr m_types;
+       std::string     m_number;
+       bool            m_numberIsSet;
 
-       bool m_numberIsSet;
+       ContactPhoneNumberTypeArrayPtr m_types;
 };
 
 } // Contact