Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
paymentrequestplus.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PAYMENTREQUESTPLUS_H
6 #define PAYMENTREQUESTPLUS_H
7 
8 #include "paymentrequest.pb.h"
9 
10 #include "base58.h"
11 
12 #include <QByteArray>
13 #include <QList>
14 #include <QString>
15 
16 //
17 // Wraps dumb protocol buffer paymentRequest
18 // with extra methods
19 //
20 
22 {
23 public:
25 
26  bool parse(const QByteArray& data);
27  bool SerializeToString(string* output) const;
28 
29  bool IsInitialized() const;
30  QString getPKIType() const;
31  // Returns true if merchant's identity is authenticated, and
32  // returns human-readable merchant identity in merchant
33  bool getMerchant(X509_STORE* certStore, QString& merchant) const;
34 
35  // Returns list of outputs, amount
36  QList<std::pair<CScript,qint64> > getPayTo() const;
37 
38  const payments::PaymentDetails& getDetails() const { return details; }
39 
40 private:
43 };
44 
45 #endif // PAYMENTREQUESTPLUS_H
46 
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
static const CCheckpointData data
Definition: checkpoints.cpp:56
QList< std::pair< CScript, qint64 > > getPayTo() const