Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
QTimer timer; | QTimer timer; | ||||
std::function<void(void)> func; | std::function<void(void)> func; | ||||
}; | }; | ||||
class QtRPCTimerInterface : public RPCTimerInterface { | class QtRPCTimerInterface : public RPCTimerInterface { | ||||
public: | public: | ||||
~QtRPCTimerInterface() {} | ~QtRPCTimerInterface() {} | ||||
const char *Name() { return "Qt"; } | const char *Name() override { return "Qt"; } | ||||
RPCTimerBase *NewTimer(std::function<void(void)> &func, int64_t millis) { | RPCTimerBase *NewTimer(std::function<void(void)> &func, | ||||
int64_t millis) override { | |||||
return new QtRPCTimerBase(func, millis); | return new QtRPCTimerBase(func, millis); | ||||
} | } | ||||
}; | }; | ||||
#include "rpcconsole.moc" | #include "rpcconsole.moc" | ||||
/** | /** | ||||
* Split shell command line into a list of arguments and optionally execute the | * Split shell command line into a list of arguments and optionally execute the | ||||
▲ Show 20 Lines • Show All 1,161 Lines • Show Last 20 Lines |