#include <mnmodel.h>
|
| | MNModel (QObject *parent) |
| |
| | ~MNModel () override |
| |
| void | init () |
| |
| void | setWalletModel (WalletModel *_model) |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
| |
| bool | removeMn (const QModelIndex &index) |
| |
| bool | addMn (CMasternodeConfig::CMasternodeEntry *entry) |
| |
| void | updateMNList () |
| |
| bool | isMNsNetworkSynced () |
| |
| int | getMNState (const QString &mnAlias) |
| |
| bool | isMNInactive (const QString &mnAlias) |
| |
| bool | isMNActive (const QString &mnAlias) |
| |
| bool | isMNCollateralMature (const QString &mnAlias) |
| |
| CAmount | getMNCollateralRequiredAmount () |
| |
| int | getMasternodeCollateralMinConf () |
| |
| bool | createMNCollateral (const QString &alias, const QString &addr, COutPoint &ret_outpoint, QString &ret_error) |
| |
| bool | startLegacyMN (const CMasternodeConfig::CMasternodeEntry &mne, int chainHeight, std::string &strError) |
| |
| void | startAllLegacyMNs (bool onlyMissing, int &amountOfMnFailed, int &amountOfMnStarted, std::string *aliasFilter=nullptr, std::string *error_ret=nullptr) |
| |
| CMasternodeConfig::CMasternodeEntry * | createLegacyMN (COutPoint &collateralOut, const std::string &alias, std::string &serviceAddr, const std::string &port, const std::string &mnKeyString, QString &ret_error) |
| |
| bool | removeLegacyMN (const std::string &alias_to_remove, const std::string &tx_id, unsigned int out_index, QString &ret_error) |
| |
| void | setCoinControl (CCoinControl *coinControl) |
| |
| void | resetCoinControl () |
| |
Definition at line 14 of file mnmodel.h.
◆ ColumnIndex
| Enumerator |
|---|
| ALIAS | User specified MN alias.
|
| ADDRESS | Node address.
|
| PROTO_VERSION | Node protocol version.
|
| STATUS | Node status.
|
| ACTIVE_TIMESTAMP | |
| PUB_KEY | |
| COLLATERAL_ID | |
| COLLATERAL_OUT_INDEX | |
| PRIV_KEY | |
| WAS_COLLATERAL_ACCEPTED | |
Definition at line 27 of file mnmodel.h.
◆ MNModel()
| MNModel::MNModel |
( |
QObject * |
parent | ) |
|
|
explicit |
◆ ~MNModel()
◆ addMn()
◆ columnCount()
| int MNModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ createLegacyMN()
| CMasternodeConfig::CMasternodeEntry * MNModel::createLegacyMN |
( |
COutPoint & |
collateralOut, |
|
|
const std::string & |
alias, |
|
|
std::string & |
serviceAddr, |
|
|
const std::string & |
port, |
|
|
const std::string & |
mnKeyString, |
|
|
QString & |
ret_error |
|
) |
| |
◆ createMNCollateral()
| bool MNModel::createMNCollateral |
( |
const QString & |
alias, |
|
|
const QString & |
addr, |
|
|
COutPoint & |
ret_outpoint, |
|
|
QString & |
ret_error |
|
) |
| |
◆ data()
| QVariant MNModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ getMasternodeCollateralMinConf()
| int MNModel::getMasternodeCollateralMinConf |
( |
| ) |
|
◆ getMNCollateralRequiredAmount()
| CAmount MNModel::getMNCollateralRequiredAmount |
( |
| ) |
|
◆ getMNState()
| int MNModel::getMNState |
( |
const QString & |
mnAlias | ) |
|
◆ index()
| QModelIndex MNModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| const |
|
override |
◆ init()
◆ isMNActive()
| bool MNModel::isMNActive |
( |
const QString & |
mnAlias | ) |
|
◆ isMNCollateralMature()
| bool MNModel::isMNCollateralMature |
( |
const QString & |
mnAlias | ) |
|
◆ isMNInactive()
| bool MNModel::isMNInactive |
( |
const QString & |
mnAlias | ) |
|
◆ isMNsNetworkSynced()
| bool MNModel::isMNsNetworkSynced |
( |
| ) |
|
◆ removeLegacyMN()
| bool MNModel::removeLegacyMN |
( |
const std::string & |
alias_to_remove, |
|
|
const std::string & |
tx_id, |
|
|
unsigned int |
out_index, |
|
|
QString & |
ret_error |
|
) |
| |
◆ removeMn()
| bool MNModel::removeMn |
( |
const QModelIndex & |
index | ) |
|
◆ resetCoinControl()
| void MNModel::resetCoinControl |
( |
| ) |
|
◆ rowCount()
| int MNModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setCoinControl()
◆ setWalletModel()
◆ startAllLegacyMNs()
| void MNModel::startAllLegacyMNs |
( |
bool |
onlyMissing, |
|
|
int & |
amountOfMnFailed, |
|
|
int & |
amountOfMnStarted, |
|
|
std::string * |
aliasFilter = nullptr, |
|
|
std::string * |
error_ret = nullptr |
|
) |
| |
◆ startLegacyMN()
◆ updateMNList()
| void MNModel::updateMNList |
( |
| ) |
|
◆ validateMNIP()
| bool MNModel::validateMNIP |
( |
const QString & |
addrStr | ) |
|
|
static |
◆ coinControl
◆ collateralTxAccepted
| QMap<std::string, bool> MNModel::collateralTxAccepted |
|
private |
◆ nodes
| QMap<QString, std::pair<QString, CMasternode*> > MNModel::nodes |
|
private |
◆ walletModel
The documentation for this class was generated from the following files: