summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------libicclient0
-rw-r--r--ord.cxx6
-rw-r--r--qicclient/member.hxx1
-rw-r--r--qicclient/ord.hxx7
4 files changed, 9 insertions, 5 deletions
diff --git a/libicclient b/libicclient
-Subproject 12950ef44456807150eaf669e32446b011b754f
+Subproject b0ae674600b68d8b8fa1d522cb0f5366ee0f2cb
diff --git a/ord.cxx b/ord.cxx
index 70ef812..0d13af0 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -1,5 +1,5 @@
#include <algorithm>
-#include <icclient/ord.h>
+#include <memory>
#include "qicclient/ord.hxx"
namespace QICClient {
@@ -74,4 +74,8 @@ namespace QICClient {
}
}
+ void Ord::checkout(Member& member)
+ {
+ icclient_ord_checkout(m_data, member.data());
+ }
}
diff --git a/qicclient/member.hxx b/qicclient/member.hxx
index 864d353..fc3c77e 100644
--- a/qicclient/member.hxx
+++ b/qicclient/member.hxx
@@ -83,6 +83,7 @@ namespace QICClient {
QString const& country() const { return m_country; }
QString const& phoneDay() const { return m_phoneDay; }
QString const& email() const { return m_email; }
+ icclient_member* data() { return m_data; }
void setUserName(QString const& userName);
void setUserNick(QString const& userNick);
diff --git a/qicclient/ord.hxx b/qicclient/ord.hxx
index fc7802a..697daa7 100644
--- a/qicclient/ord.hxx
+++ b/qicclient/ord.hxx
@@ -3,6 +3,7 @@
#include <QAbstractListModel>
#include <icclient/ord.h>
+#include "member.hxx"
#include "product.hxx"
namespace QICClient {
@@ -56,11 +57,9 @@ namespace QICClient {
double shipping() const { return m_shipping; }
double totalCost() const { return m_totalCost; }
- /*
public slots:
- void remove(unsigned int const& indices);
- void checkout();
- */
+// void remove(unsigned int const& indices);
+ void checkout(Member& member);
signals:
void rowCountChanged();