From 51f0c3b5b1b5c3a528044081e28087b20b085dfe Mon Sep 17 00:00:00 2001 From: Ake Hedman Date: Sun, 15 Oct 2023 21:08:01 +0200 Subject: [PATCH] Updated mongoose to latest version --- src/vscp/common/mdf.h | 45 +++++++++++++++++++++++++++++++++++++++++++ third_party/mongoose | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) 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