Skip to content

Commit

Permalink
WalletModel: sigal for widget output
Browse files Browse the repository at this point in the history
  • Loading branch information
vladik committed Jun 19, 2024
1 parent b5f881a commit 4fe5b3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/model/wallet_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ void WalletModel::onAssetInfo(beam::Asset::ID assetId, const beam::wallet::Walle
emit assetInfoChanged(assetId, info);
}

void WalletModel::onWidgetWrite(std::string&& sName, ByteBuffer&& buf, uint32_t iStream)
{
emit widgetWrite(sName, buf, iStream);
}

void WalletModel::onFullAssetsListLoaded()
{
emit fullAssetsListLoaded();
Expand Down
2 changes: 2 additions & 0 deletions ui/model/wallet_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class WalletModel
void walletStatusChanged();
void assetInfoChanged(beam::Asset::ID assetId, const beam::wallet::WalletAsset& info);
void iwtCallResult(const QString& callId, boost::any);
void widgetWrite(const std::string& sName, const beam::ByteBuffer& buf, uint32_t iStream);

signals:
void transactionsChanged(beam::wallet::ChangeAction, const std::vector<beam::wallet::TxDescription>& items);
Expand Down Expand Up @@ -170,6 +171,7 @@ class WalletModel
void onGetChatList(const std::vector<std::pair<beam::wallet::WalletID, bool>>& chats) override;
void onGetChatMessages(const std::vector<beam::wallet::InstantMessage>& messages) override;
void onChatRemoved(const beam::wallet::WalletID& counterpart) override;
void onWidgetWrite(std::string&&, beam::ByteBuffer&&, uint32_t iStream) override;

#ifdef BEAM_IPFS_SUPPORT
virtual void onIPFSStatus(bool running, const std::string& error, unsigned int peercnt) override;
Expand Down

0 comments on commit 4fe5b3c

Please sign in to comment.