Changeset View
Changeset View
Standalone View
Standalone View
src/qt/recentrequeststablemodel.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H | #ifndef BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H | ||||
#define BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H | #define BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H | ||||
#include "walletmodel.h" | #include <qt/walletmodel.h> | ||||
#include <QAbstractTableModel> | #include <QAbstractTableModel> | ||||
#include <QDateTime> | #include <QDateTime> | ||||
#include <QStringList> | #include <QStringList> | ||||
class CWallet; | |||||
class RecentRequestEntry { | class RecentRequestEntry { | ||||
public: | public: | ||||
RecentRequestEntry() | RecentRequestEntry() | ||||
: nVersion(RecentRequestEntry::CURRENT_VERSION), id(0) {} | : nVersion(RecentRequestEntry::CURRENT_VERSION), id(0) {} | ||||
static const int CURRENT_VERSION = 1; | static const int CURRENT_VERSION = 1; | ||||
int nVersion; | int nVersion; | ||||
int64_t id; | int64_t id; | ||||
Show All 29 Lines | |||||
/** | /** | ||||
* Model for list of recently generated payment requests / bitcoincash: URIs. | * Model for list of recently generated payment requests / bitcoincash: URIs. | ||||
* Part of wallet model. | * Part of wallet model. | ||||
*/ | */ | ||||
class RecentRequestsTableModel : public QAbstractTableModel { | class RecentRequestsTableModel : public QAbstractTableModel { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit RecentRequestsTableModel(CWallet *wallet, WalletModel *parent); | explicit RecentRequestsTableModel(WalletModel *parent); | ||||
~RecentRequestsTableModel(); | ~RecentRequestsTableModel(); | ||||
enum ColumnIndex { | enum ColumnIndex { | ||||
Date = 0, | Date = 0, | ||||
Label = 1, | Label = 1, | ||||
Message = 2, | Message = 2, | ||||
Amount = 3, | Amount = 3, | ||||
NUMBER_OF_COLUMNS | NUMBER_OF_COLUMNS | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |