summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-13 18:17:49 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-13 18:17:49 +0800
commit5bd00e1499884e8458f58db86a6b92bc96da3e57 (patch)
tree03516f2759f44034a864e16e9d6eb82aa40629b9 /interchange
parent3fc49f2f2838c69be14bcf60c6cf756825b2bbee (diff)
Method for updating quantity
Diffstat (limited to 'interchange')
-rw-r--r--interchange/ord.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/interchange/ord.hxx b/interchange/ord.hxx
index 422d634..83fcce9 100644
--- a/interchange/ord.hxx
+++ b/interchange/ord.hxx
@@ -47,6 +47,10 @@ namespace QInterchange {
double totalCost() const { return m_totalCost; }
void setProfile(QString const& profile);
public slots:
+ void update(const QString &name,
+ const int quantity = 0,
+ const QString &orderPage = "",
+ const QString &nextPage = "");
void remove(const QString &name,
const QString &orderPage = "",
const QString &nextPage = "");
@@ -56,12 +60,12 @@ namespace QInterchange {
void subtotalChanged();
void shippingChanged();
void totalCostChanged();
- void removed(const QString &response);
+ void updated(const QString &response);
void gotTransaction(QString const& response);
protected:
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
- void emitRemoval(const QString &response);
+ void emitUpdate(const QString &response);
void emitTransaction(QString const& response);
private: