6 #ifndef PIVX_QT_RPCEXECUTOR_H
7 #define PIVX_QT_RPCEXECUTOR_H
31 void request(
const QString& command);
34 void reply(
int category,
const QString& command);
52 timer.setSingleShot(
true);
53 connect(&
timer, &QTimer::timeout, [
this]{
func(); });
60 std::function<void(
void)>
func;
70 const char *
Name() {
return "Qt"; }
std::function< void(void)> func
QtRPCTimerBase(std::function< void(void)> &_func, int64_t millis)
const char * Name()
Implementation name.
RPCTimerBase * NewTimer(std::function< void(void)> &func, int64_t millis)
Factory function for timers.
void reply(int category, const QString &command)
void request(const QString &command)
static QString categoryClass(int category)
bool ExecuteCommandLine(std::string &strResult, const std::string &strCommand)
Split shell command line into a list of arguments and execute the command(s).
Opaque base class for timers returned by NewTimerFunc.