PIVX Core  5.6.99
P2P Digital Currency
guitransactionsutils.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2022 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_GUITRANSACTIONSUTILS_H
6 #define PIVX_QT_GUITRANSACTIONSUTILS_H
7 
8 #include "pwidget.h"
9 #include "walletmodel.h"
10 
11 
12 namespace GuiTransactionsUtils {
13 
14  // Process WalletModel::SendCoinsReturn and generate a pair consisting
15  // of a message and message flags for use in emit message().
16  // Additional parameter msgArg can be used via .arg(msgArg).
17  QString ProcessSendCoinsReturn(
18  const WalletModel::SendCoinsReturn& sendCoinsReturn,
19  WalletModel* walletModel,
21  const QString& msgArg = QString(),
22  bool fPrepare = false
23  );
24 
26  const WalletModel::SendCoinsReturn& sendCoinsReturn,
27  WalletModel* walletModel,
28  const QString& msgArg = QString(),
29  bool fPrepare = false
30  );
31 
32 
33 }
34 
35 
36 #endif // PIVX_QT_GUITRANSACTIONSUTILS_H
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
Definition: guiinterface.h:35
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109
void ProcessSendCoinsReturnAndInform(PWidget *parent, const WalletModel::SendCoinsReturn &sendCoinsReturn, WalletModel *walletModel, const QString &msgArg, bool fPrepare)
QString ProcessSendCoinsReturn(const WalletModel::SendCoinsReturn &sendCoinsReturn, WalletModel *walletModel, CClientUIInterface::MessageBoxFlags &informType, const QString &msgArg, bool fPrepare)