summaryrefslogtreecommitdiffstats
path: root/src/imports/purchasing/qinappproductqmltype_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-03-23 14:38:23 +0100
committerEskil Abrahamsen-Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-03-25 14:03:14 +0200
commit301b70997f96e073e5f17aa688a852d537efbbbe (patch)
tree52da70924244f308b3d5cb8f2521c7e7dfc79471 /src/imports/purchasing/qinappproductqmltype_p.h
parent380191bf315dbc6601f5b43513173d6deeff0009 (diff)
Add Product.resetStatus() method
When the product query for some reason fails, the only way to re-request the product currently is to use instantiators, delete the object and then recreate it. Instead, we add explicit API to accomplish this. Since we want to be able to do this from the onStatusChanged handler, it required a small change to the order of events in Android, the item needs to be removed from the pending list before the status can be reset, so the signal that the query failed has to be the last thing that happens. Task-number: QTRD-3506 Change-Id: I072ff9c965986b00b2b7557535e19af1b47b1b51 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@theqtcompany.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/imports/purchasing/qinappproductqmltype_p.h')
-rw-r--r--src/imports/purchasing/qinappproductqmltype_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/purchasing/qinappproductqmltype_p.h b/src/imports/purchasing/qinappproductqmltype_p.h
index e718787..db7c1f2 100644
--- a/src/imports/purchasing/qinappproductqmltype_p.h
+++ b/src/imports/purchasing/qinappproductqmltype_p.h
@@ -58,6 +58,7 @@ public:
explicit QInAppProductQmlType(QObject *parent = 0);
Q_INVOKABLE void purchase();
+ Q_INVOKABLE void resetStatus();
void setIdentifier(const QString &identifier);
QString identifier() const;