text: // Copyright (c) 2011-2013 The Bitcoin Core developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef QTCOIN_QT_PROPOSALRECORD_H
  #define QTCOIN_QT_PROPOSALRECORD_H
  
  #include "amount.h"
  #include "uint256.h"
  
  #include <QList>
  #include <QString>
  
  class CWallet;
  
  class ProposalRecord
  {
  public:
      ProposalRecord():
              hash(""), start_block(0), end_block(0), url(""), name(""), yesVotes(0), noVotes(0), absoluteYesVotes(0), amount(0), percentage(0)
      {
      }
  
      ProposalRecord(QString hash, qint64 start_block, qint64 end_block,
                  QString url, QString name,
                  const CAmount& yesVotes, const CAmount& noVotes, const CAmount& absoluteYesVotes,
                  const CAmount& amount, const CAmount& percentage):
              hash(hash), start_block(start_block), end_block(end_block), url(url), name(name), yesVotes(yesVotes), noVotes(noVotes),
              absoluteYesVotes(absoluteYesVotes), amount(amount), percentage(percentage)
      {
      }
  
      QString hash;
      qint64 start_block;
      qint64 end_block;
      QString url;
      QString name;
      CAmount yesVotes;
      CAmount noVotes;
      CAmount absoluteYesVotes;
      CAmount amount;
      CAmount percentage;
  };
  
  #endif // QTCOIN_QT_PROPOSALRECORD_H
  