summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-31 17:19:51 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-31 17:19:51 +0800
commitb8ef74e598edca39ab68c5319308a881c526e8f1 (patch)
tree74a166bb55e01797be6339faea25b1beb64a7f6b /interchange
parentf94b0fa3c37d2fd3be3b55b823feeaf8def8cc9a (diff)
Method for removing an item from the cart
Diffstat (limited to 'interchange')
-rw-r--r--interchange/ord.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/interchange/ord.hxx b/interchange/ord.hxx
index 7405c55..a0cb885 100644
--- a/interchange/ord.hxx
+++ b/interchange/ord.hxx
@@ -47,17 +47,20 @@ namespace QInterchange {
double totalCost() const { return m_totalCost; }
void setProfile(QString const& profile);
public slots:
-// void remove(unsigned int const& indices);
+ void remove(const QString &name,
+ const QString &nextPage);
void checkout(const Member& member);
signals:
void rowCountChanged();
void subtotalChanged();
void shippingChanged();
void totalCostChanged();
+ void removed(const QString &response);
void gotTransaction(QString const& response);
protected:
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
+ void emitRemoval(const QString &response);
void emitTransaction(QString const& response);
private: