Skip to content
Snippets Groups Projects
Commit 469af071 authored by andrey.daragan's avatar andrey.daragan
Browse files

bugs-3224

parent f3a8723b
No related branches found
No related tags found
1 merge request!11Cellframe clone
......@@ -114,7 +114,7 @@ void DapServiceController::registerCommand()
// The team to create a new wallet on the Dashboard tab
m_transceivers.append(qMakePair(dynamic_cast<DapAbstractCommand*>(m_DAPRpcSocket->addService(new DapAddWalletCommand("DapAddWalletCommand", m_DAPRpcSocket))), QString("walletCreated")));
// The command to get a list of available wallets
m_transceivers.append(qMakePair(dynamic_cast<DapAbstractCommand*>(m_DAPRpcSocket->addService(new DapGetListWalletsCommand("DapGetListWalletsCommand", m_DAPRpcSocket))), QString("walletsListReceived")));
m_transceivers.append(qMakePair(dynamic_cast<DapAbstractCommand*>(m_DAPRpcSocket->addService(new DapGetWalletsInfoCommand("DapGetWalletsInfoCommand", m_DAPRpcSocket))), QString("walletsInfoReceived")));
// Command to save data from the Logs tab
m_transceivers.append(qMakePair(dynamic_cast<DapAbstractCommand*>(m_DAPRpcSocket->addService(new DapExportLogCommand("DapExportLogCommand",m_DAPRpcSocket))), QString("exportLogs")));
// The command to get a list of available networks
......@@ -137,7 +137,7 @@ void DapServiceController::registerCommand()
m_transceivers.append(qMakePair(dynamic_cast<DapAbstractCommand*>(m_DAPRpcSocket->addService(new DapSaveHistoryExecutedCmdCommand("DapSaveHistoryExecutedCmdCommand",m_DAPRpcSocket))), QString()));
connect(this, &DapServiceController::walletsListReceived, [=] (const QVariant& walletList)
connect(this, &DapServiceController::walletsInfoReceived, [=] (const QVariant& walletList)
{
QByteArray array = QByteArray::fromHex(walletList.toByteArray());
QList<DapWallet> tempWallets;
......
......@@ -16,7 +16,7 @@
#include "handlers/DapActivateClientCommand.h"
#include "handlers/DapUpdateLogsCommand.h"
#include "handlers/DapAddWalletCommand.h"
#include "handlers/DapGetListWalletsCommand.h"
#include "handlers/DapGetWalletsInfoCommand.h"
#include "handlers/DapGetListNetworksCommand.h"
#include "handlers/DapExportLogCommand.h"
#include "handlers/DapGetWalletAddressesCommand.h"
......@@ -133,7 +133,7 @@ signals:
void walletCreated(const QVariant& wallet);
void walletsListReceived(const QVariant& walletList);
void walletsInfoReceived(const QVariant& walletList);
void walletsReceived(const QList<QObject*>& walletList);
......
......@@ -95,7 +95,7 @@ DapMainApplicationWindowForm
Component.onCompleted:
{
dapServiceController.requestToService("DapGetListNetworksCommand");
dapServiceController.requestToService("DapGetListWalletsCommand");
dapServiceController.requestToService("DapGetWalletsInfoCommand");
}
Connections
......
......@@ -119,7 +119,7 @@ DapDashboardTabForm
dapIndexCurrentWallet = dapDashboardTopPanel.dapComboboxWallet.currentIndex
dapWallets.length = 0
dapModelWallets.clear()
dapServiceController.requestToService("DapGetListWalletsCommand");
dapServiceController.requestToService("DapGetWalletsInfoCommand");
}
function createWallet()
......
......@@ -57,8 +57,8 @@ void DapServiceController::registerCommand()
m_pServer->addService(new DapUpdateLogsCommand("DapUpdateLogsCommand", m_pServer, LOG_FILE));
// The team to create a new wallet on the Dashboard tab
m_pServer->addService(new DapAddWalletCommand("DapAddWalletCommand", m_pServer));
// The command to get a list of available wallets
m_pServer->addService(new DapGetListWalletsCommand("DapGetListWalletsCommand", m_pServer, CLI_PATH));
// Team to get information on all available wallets
m_pServer->addService(new DapGetWalletsInfoCommand("DapGetWalletsInfoCommand", m_pServer, CLI_PATH));
// The command to get a list of available networks
m_pServer->addService(new DapGetListNetworksCommand("DapGetListNetworksCommand", m_pServer, CLI_PATH));
// Saving the file with the logs
......
......@@ -28,8 +28,8 @@ typedef class DapRpcLocalServer DapUiService;
#include "handlers/DapActivateClientCommand.h"
#include "handlers/DapUpdateLogsCommand.h"
#include "handlers/DapAddWalletCommand.h"
#include "handlers/DapGetListWalletsCommand.h"
#include "handlers/DapGetListNetworksCommand.h"
#include "handlers/DapGetWalletsInfoCommand.h"
#include "handlers/DapGetWalletAddressesCommand.h"
#include "handlers/DapExportLogCommand.h"
#include "handlers/DapGetWalletTokenInfoCommand.h"
......
Subproject commit 1688d69223b19de929eed4f8dc61332aaec8dd46
Subproject commit 77f0dd9d161ac902f28d5d64b3451d7ab50fe186
Subproject commit 47ac387a8ba26d78bcf9dd8ae15298c6433a70bb
Subproject commit 9326dc39e0e03b9d8091830a0e43a8d270d316ac
Subproject commit 64876e9d1bfefe7cae370046adf821734dcc4c67
Subproject commit 77eab0b05f69a98de1fd8c13b0d5d6262687c5fa
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