当前位置: 首页>>代码示例>>C++>>正文


C++ encryptionStatusChanged函数代码示例

本文整理汇总了C++中encryptionStatusChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ encryptionStatusChanged函数的具体用法?C++ encryptionStatusChanged怎么用?C++ encryptionStatusChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了encryptionStatusChanged函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: getBalance

void WalletModel::update()
{
	qint64 newBalance = getBalance();
	qint64 newUnconfirmedBalance = getUnconfirmedBalance();
	int newNumTransactions = getNumTransactions();
	EncryptionStatus newEncryptionStatus = getEncryptionStatus();
	bool newMintStatus = getMintUnlockedbool();
        qint64 newReserveBalance = getCoinStakeReserveValue();

	if (cachedBalance != newBalance || cachedUnconfirmedBalance != newUnconfirmedBalance)
		emit balanceChanged(newBalance, getStake(), newUnconfirmedBalance);

	if (cachedNumTransactions != newNumTransactions)
		emit numTransactionsChanged(newNumTransactions);

	if (cachedEncryptionStatus != newEncryptionStatus)
		emit encryptionStatusChanged(newEncryptionStatus);
        
	if (cachedMintStatus != newMintStatus)
		emit mintStatusChanged(newMintStatus,newReserveBalance);

	cachedBalance = newBalance;
	cachedUnconfirmedBalance = newUnconfirmedBalance;
	cachedNumTransactions = newNumTransactions;
	cachedMintStatus = newMintStatus;
        cachedReserveBalance = newReserveBalance;
}
开发者ID:iheartcryptocoin,项目名称:ppcoin-ce,代码行数:27,代码来源:walletmodel.cpp

示例2: getEncryptionStatus

void WalletModel::updateStatus()
{
    EncryptionStatus newEncryptionStatus = getEncryptionStatus();

    if(cachedEncryptionStatus != newEncryptionStatus)
        emit encryptionStatusChanged(newEncryptionStatus);
}
开发者ID:djtms,项目名称:altcoin,代码行数:7,代码来源:walletmodel.cpp

示例3: connect

void WalletView::setWalletModel(WalletModel *_walletModel)
{
    this->walletModel = _walletModel;

    // Put transaction list in tabs
    transactionView->setModel(_walletModel);
    overviewPage->setWalletModel(_walletModel);
    receiveCoinsPage->setModel(_walletModel);
    sendCoinsPage->setModel(_walletModel);
    usedReceivingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);
    usedSendingAddressesPage->setModel(_walletModel ? _walletModel->getAddressTableModel() : nullptr);

    //added wallet model to avoid crash when start is clicked at masternode tab
    //note that at this time its not possible to run node via this tab because coins are pre-loced at start of MAC and start button trying to lock it again
    QSettings settings;
    if (settings.value("fShowMasternodesTab").toBool()) {
        masternodeListPage->setWalletModel(_walletModel);
    }

    if (_walletModel)
    {
        // Receive and pass through messages from wallet model
        connect(_walletModel, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));

        // Handle changes in encryption status
        connect(_walletModel, SIGNAL(encryptionStatusChanged()), this, SIGNAL(encryptionStatusChanged()));
        updateEncryptionStatus();

        // update HD status
        Q_EMIT hdEnabledStatusChanged();

        // Balloon pop-up for new transaction
        connect(_walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
                this, SLOT(processNewTransaction(QModelIndex,int,int)));

        // Ask for passphrase if needed
        connect(_walletModel, SIGNAL(requireUnlock()), this, SLOT(unlockWallet()));

        // Show progress dialog
        connect(_walletModel, SIGNAL(showProgress(QString,int)), this, SLOT(showProgress(QString,int)));
    }
}
开发者ID:machinecoin-project,项目名称:machinecoin-core,代码行数:42,代码来源:walletview.cpp

示例4: getBalance

void WalletModel::update()
{
    qint64 newBalance = getBalance();
    qint64 newUnconfirmedBalance = getUnconfirmedBalance();
    int newNumTransactions = getNumTransactions();
    EncryptionStatus newEncryptionStatus = getEncryptionStatus();

    if(cachedBalance != newBalance || cachedUnconfirmedBalance != newUnconfirmedBalance)
        emit balanceChanged(newBalance, getStake(), newUnconfirmedBalance);

    if(cachedNumTransactions != newNumTransactions)
        emit numTransactionsChanged(newNumTransactions);

    if(cachedEncryptionStatus != newEncryptionStatus)
        emit encryptionStatusChanged(newEncryptionStatus);

    cachedBalance = newBalance;
    cachedUnconfirmedBalance = newUnconfirmedBalance;
    cachedNumTransactions = newNumTransactions;
}
开发者ID:DevAoD,项目名称:AoD,代码行数:20,代码来源:walletmodel.cpp

示例5: switch

int WalletModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0:
            balanceChanged((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2])),(*reinterpret_cast< qint64(*)>(_a[3])));
            break;
        case 1:
            numTransactionsChanged((*reinterpret_cast< int(*)>(_a[1])));
            break;
        case 2:
            encryptionStatusChanged((*reinterpret_cast< int(*)>(_a[1])));
            break;
        case 3:
            requireUnlock();
            break;
        case 4:
            error((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])));
            break;
        case 5:
            updateStatus();
            break;
        case 6:
            updateTransaction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            break;
        case 7:
            updateAddressBook((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])));
            break;
        case 8:
            pollBalanceChanged();
            break;
        default:
            ;
        }
        _id -= 9;
    }
    return _id;
}
开发者ID:signat,项目名称:bsacoin,代码行数:41,代码来源:moc_walletmodel.cpp

示例6: encryptionStatusChanged

void WalletView::updateEncryptionStatus()
{
    emit encryptionStatusChanged(walletModel->getEncryptionStatus());
}
开发者ID:KaTXi,项目名称:ASTC,代码行数:4,代码来源:walletview.cpp

示例7: encryptionStatusChanged

void WalletView::updateEncryptionStatus()
{
    Q_EMIT encryptionStatusChanged();
}
开发者ID:CubanCorona,项目名称:bitcoin,代码行数:4,代码来源:walletview.cpp


注:本文中的encryptionStatusChanged函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。