void tsender<STREAM>::send_reply(const uint32_t id, const std::string& message) { LOG_T(__PRETTY_FUNCTION__ , ": id »", id , "« message »", message , "«.\n"); connection_.strand_execute(std::bind( &tsender::send_message , this , tmessage(tmessage::ttype::reply, id, message))); }
uint32_t tsender<STREAM>::send_action(const std::string& message) { LOG_T(__PRETTY_FUNCTION__, ": message »", message, "«.\n"); uint32_t id__; while((id__ = ++id_) == 0) { /* NOTHING */ } connection_.strand_execute(std::bind( &tsender::send_message , this , tmessage(tmessage::ttype::action, id__, message))); return id__; }
/** @todo the caption is ignored. */ void show_message(CVideo& video, const std::string& title, const std::string& message, const std::string& /*button_caption*/, const bool auto_close) { tmessage(title, message, auto_close).show(video); }