diff --git a/src/vscp/common/mdf.h b/src/vscp/common/mdf.h index 32e4ec05a..8d7606aff 100644 --- a/src/vscp/common/mdf.h +++ b/src/vscp/common/mdf.h @@ -1654,6 +1654,12 @@ class CMDF_Item : public CMDF_Object { */ std::string getValue(void) { return m_value; }; + /*! + Set item value + @param Value to set + */ + void setValue(std::string& str) { m_value = str; }; + /*! Get the register description @return Register description @@ -1884,9 +1890,18 @@ class CMDF_Address : public CMDF_Object { class CMDF_Manufacturer : public CMDF_Object { public: + CMDF_Manufacturer(); ~CMDF_Manufacturer(); + enum contact_type { + contact_type_phone, + contact_type_fax, + contact_type_email, + contact_type_web, + contact_type_social + }; + // Friend declarations friend CMDF; friend bool __getBitAttributes(std::deque *pbitlist, const char **attr); @@ -1947,6 +1962,36 @@ class CMDF_Manufacturer : public CMDF_Object { return ((m_list_Social.size() <= index) ? nullptr : m_list_Social[index]); }; + /*! + Get pointer to list for phone contact item + @ſeturn Pointer to phone contact list + */ + std::deque *getPhoneContactList(void) { return &m_list_Phone; }; + + /*! + Get pointer to list for fax contact item + @ſeturn Pointer to fax contact list + */ + std::deque *getFaxContactList(void) { return &m_list_Fax; }; + + /*! + Get pointer to list for email contact item + @ſeturn Pointer to email contact list + */ + std::deque *getEmailContactList(void) { return &m_list_Email; }; + + /*! + Get pointer to list for web contact item + @ſeturn Pointer to web contact list + */ + std::deque *getWebContactList(void) { return &m_list_Web; }; + + /*! + Get pointer to list for social contact item + @ſeturn Pointer to social contact list + */ + std::deque *getSocialContactList(void) { return &m_list_Social; }; + private: std::string m_strName; // Manufacturer name CMDF_Address m_address; // Address of manufacturer diff --git a/third_party/mongoose b/third_party/mongoose index 7f3d450b3..001134af8 160000 --- a/third_party/mongoose +++ b/third_party/mongoose @@ -1 +1 @@ -Subproject commit 7f3d450b3287297c61943f20f386c80877e244b8 +Subproject commit 001134af899aace0f3e50629d3f93fb4bd4645a9