Skip to content

Commit

Permalink
Updated mongoose to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Oct 15, 2023
1 parent 537f02b commit 51f0c3b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions src/vscp/common/mdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<CMDF_Bit *> *pbitlist, const char **attr);
Expand Down Expand Up @@ -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<CMDF_Item *> *getPhoneContactList(void) { return &m_list_Phone; };

/*!
Get pointer to list for fax contact item
@ſeturn Pointer to fax contact list
*/
std::deque<CMDF_Item *> *getFaxContactList(void) { return &m_list_Fax; };

/*!
Get pointer to list for email contact item
@ſeturn Pointer to email contact list
*/
std::deque<CMDF_Item *> *getEmailContactList(void) { return &m_list_Email; };

/*!
Get pointer to list for web contact item
@ſeturn Pointer to web contact list
*/
std::deque<CMDF_Item *> *getWebContactList(void) { return &m_list_Web; };

/*!
Get pointer to list for social contact item
@ſeturn Pointer to social contact list
*/
std::deque<CMDF_Item *> *getSocialContactList(void) { return &m_list_Social; };

private:
std::string m_strName; // Manufacturer name
CMDF_Address m_address; // Address of manufacturer
Expand Down
2 changes: 1 addition & 1 deletion third_party/mongoose
Submodule mongoose updated 1709 files

0 comments on commit 51f0c3b

Please sign in to comment.