mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-14 12:43:19 +02:00
28 lines
674 B
C++
28 lines
674 B
C++
#ifndef BOSS_MOD_CHANNELFUNDSCOMPUTER_HPP
|
|
#define BOSS_MOD_CHANNELFUNDSCOMPUTER_HPP
|
|
|
|
namespace Boss { namespace Msg { struct ListfundsResult; }}
|
|
namespace Ev { template<typename a> class Io; }
|
|
namespace S { class Bus; }
|
|
|
|
namespace Boss { namespace Mod {
|
|
|
|
class ChannelFundsComputer {
|
|
private:
|
|
S::Bus& bus;
|
|
|
|
void start();
|
|
Ev::Io<void> on_listfunds(Msg::ListfundsResult const&);
|
|
|
|
public:
|
|
ChannelFundsComputer() =delete;
|
|
ChannelFundsComputer(ChannelFundsComputer const&) =delete;
|
|
ChannelFundsComputer(ChannelFundsComputer&&) =delete;
|
|
|
|
explicit
|
|
ChannelFundsComputer(S::Bus& bus_) : bus(bus_) { start(); }
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* !defined(BOSS_MOD_CHANNELFUNDSCOMPUTER_HPP) */
|