2 * Copyright (C) 2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22#include <libpay/pay-package.h>
25class Payments : public QObject
28 Q_DISABLE_COPY(Payments)
29 Q_PROPERTY(QString currency READ currency WRITE setCurrency NOTIFY currencyChanged)
30 Q_PROPERTY(double price READ price WRITE setPrice NOTIFY priceChanged)
31 Q_PROPERTY(QString storeItemId READ storeItemId WRITE setStoreItemId NOTIFY storeItemIdChanged)
32 Q_PROPERTY(QString formattedPrice READ formattedPrice NOTIFY formattedPriceChanged)
35 explicit Payments(QObject *parent = 0);
38 QString currency() const;
40 QString storeItemId() const;
41 QString formattedPrice() const;
43 void setCurrency(const QString& currency);
44 void setPrice(const double price);
45 void setStoreItemId(const QString& store_item_id);
46 Q_INVOKABLE void start();
49 void currencyChanged(const QString& currency);
50 void priceChanged(const double price);
51 void storeItemIdChanged(const QString &store_item_id);
52 void formattedPriceChanged(const QString &formatted_price);
54 void purchaseError(const QString &error);
55 void purchaseCompleted();
60 QString m_store_item_id;
62 PayPackage *m_package;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list