Anoncoin  0.9.4
P2P Digital Currency
paymentrequestplus.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PAYMENTREQUESTPLUS_H
7 #define PAYMENTREQUESTPLUS_H
8 
9 #include "paymentrequest.pb.h"
10 
11 #include "base58.h"
12 
13 #include <QByteArray>
14 #include <QList>
15 #include <QString>
16 
17 //
18 // Wraps dumb protocol buffer paymentRequest
19 // with extra methods
20 //
21 
23 {
24 public:
26 
27  bool parse(const QByteArray& data);
28  bool SerializeToString(string* output) const;
29 
30  bool IsInitialized() const;
31  QString getPKIType() const;
32  // Returns true if merchant's identity is authenticated, and
33  // returns human-readable merchant identity in merchant
34  bool getMerchant(X509_STORE* certStore, QString& merchant) const;
35 
36  // Returns list of outputs, amount
37  QList<std::pair<CScript,qint64> > getPayTo() const;
38 
39  const payments::PaymentDetails& getDetails() const { return details; }
40 
41 private:
44 };
45 
46 #endif // PAYMENTREQUESTPLUS_H
47 
bool IsInitialized() const
bool getMerchant(X509_STORE *certStore, QString &merchant) const
bool SerializeToString(string *output) const
const payments::PaymentDetails & getDetails() const
bool parse(const QByteArray &data)
payments::PaymentDetails details
payments::PaymentRequest paymentRequest
QString getPKIType() const
QList< std::pair< CScript, qint64 > > getPayTo() const