diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 02:11:31 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 02:11:31 +0800 |
| commit | 1d0dc942aaed38ce2d4c4b8c8f078dd945c7e633 (patch) | |
| tree | 242254c058e60c1d67d11e5c32c8f13b8200373a /ord.cxx | |
| parent | 910c902f1c39f703bcbf56a4d98996cb7a76441b (diff) | |
Interface for setting order profile
Diffstat (limited to 'ord.cxx')
| -rw-r--r-- | ord.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -71,6 +71,14 @@ namespace QInterchange { emit totalCostChanged(); } + void Ord::setProfile(QString const& profile) + { + auto orderProfile = profile.toLatin1().data(); + if (m_data->profile) free(m_data->profile); + m_data->profile = (char*)malloc(strlen(orderProfile) + 1); + strcpy(m_data->profile, orderProfile); + } + void Ord::checkout(Member& member) { interchange_ord_checkout(m_data, member.data()); |