summaryrefslogtreecommitdiff
path: root/qicclient
diff options
context:
space:
mode:
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/client.hxx5
-rw-r--r--qicclient/ord.hxx (renamed from qicclient/basket.hxx)10
2 files changed, 7 insertions, 8 deletions
diff --git a/qicclient/client.hxx b/qicclient/client.hxx
index c554dab..984996c 100644
--- a/qicclient/client.hxx
+++ b/qicclient/client.hxx
@@ -8,7 +8,7 @@ namespace QICClient {
using std::shared_ptr;
class Catalog;
class Product;
- class Basket;
+ class Ord;
class Client : public QObject
{
@@ -51,8 +51,7 @@ namespace QICClient {
* \param catalog The catalog from which the item is.
* \param order The order.
*/
- void order(QString const& sku, Catalog const& catalog,
- Basket& order);
+ void order(QString const& sku, Catalog const& catalog, Ord& order);
public slots:
/*
diff --git a/qicclient/basket.hxx b/qicclient/ord.hxx
index 8930821..a3be840 100644
--- a/qicclient/basket.hxx
+++ b/qicclient/ord.hxx
@@ -1,5 +1,5 @@
-#ifndef QICCLIENT_BASKET_HXX
-#define QICCLIENT_BASKET_HXX
+#ifndef QICCLIENT_ORD_HXX
+#define QICCLIENT_ORD_HXX
#include <QAbstractListModel>
#include <icclient/ord.h>
@@ -27,7 +27,7 @@ namespace QICClient {
}
};
- class Basket : public QAbstractListModel
+ class Ord : public QAbstractListModel
{
Q_OBJECT
Q_PROPERTY(int rowCount READ rowCount NOTIFY rowCountChanged)
@@ -36,7 +36,7 @@ namespace QICClient {
Q_PROPERTY(double totalCost READ totalCost NOTIFY totalCostChanged)
public:
- explicit Basket(QObject* parent = nullptr) :
+ explicit Ord(QObject* parent = nullptr) :
QAbstractListModel{parent},
m_data{nullptr},
m_subtotal{.0},
@@ -76,4 +76,4 @@ namespace QICClient {
}
-#endif // QICCLIENT_BASKET_HXX
+#endif // QICCLIENT_ORD_HXX