Skip to content
Snippets Groups Projects
Commit 0711b310 authored by jonymt's avatar jonymt
Browse files

[*] fixed log for win. added comments

parent 50d720c1
No related branches found
No related tags found
1 merge request!11Cellframe clone
......@@ -15,24 +15,7 @@ class DapScreenHistoryModel : public QAbstractListModel
Q_OBJECT
public:
// enum DapTransactionStatus {
// Pending,
// Sent,
// Received,
// Error
// };
// Q_ENUM(DapTransactionStatus)
// struct DapTransactionItem {
// QDateTime Date;
// QImage TokenPic;
// DapTransactionStatus Status;
// QString TokenName;
// QString WalletNumber;
// QString Cryptocurrency;
// QString Currency;
// };
//!< Role enumeration
enum {
DisplayDateRole = Qt::UserRole,
DateRole,
......@@ -46,21 +29,27 @@ public:
};
private:
QList<DapTransactionItem> m_elementList;
QList<DapTransactionItem> m_elementList; // Tx history list
QTimer* m_timeout;
public:
explicit DapScreenHistoryModel(QObject *parent = nullptr);
static DapScreenHistoryModel &getInstance();
//!< override model's methods
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QHash<int, QByteArray> roleNames() const override;
public slots:
//!< Receive new tx history
void receiveNewData(const QVariant& aData);
signals:
//!< Signal for requset current state of tx history
//! By defalt this signal emits when the client has just started while
//! the tx model will not get at least one tx history.
//! The signal stop emitting after getting the request result
void sendRequestHistory();
};
......
......@@ -10,8 +10,6 @@ DapChainHistoryHandler::DapChainHistoryHandler(QObject *parent) :
QVariant DapChainHistoryHandler::getHistory() const
{
// qDebug() << "get story" << m_history;
return m_history;
}
......
......@@ -22,13 +22,18 @@ private:
public:
explicit DapChainHistoryHandler(QObject *parent = nullptr);
//!< Get current state of history
QVariant getHistory() const;
public slots:
//!< Request new tx history
//! \param wallet list
void onRequestNewHistory(const QMap<QString, QVariant>& aWallets);
signals:
//!< Signal for request wallets list
void requsetWallets();
//!< Signal about getting new transatcion history
void changeHistory(QVariant);
};
......
......@@ -21,7 +21,8 @@ ICON = icon.ico
win32 {
VERSION = $${VER_MAJ}.$${VER_MIN}.$$VER_PAT
DEFINES += CLI_PATH=\\\"./kelvin-node-cli.exe\\\"
DEFINES += LOG_FILE=\\\"./opt/kelvin-node/bin/kelvin-node_logs.txt\\\"
# DEFINES += LOG_FILE=\\\"./opt/kelvin-node/bin/kelvin-node_logs.txt\\\"
DEFINES += LOG_FILE=\\\"./kelvin-node_logs.txt\\\"
}
else {
VERSION = $$VER_MAJ\.$$VER_MIN\-$$VER_PAT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment