MCPcopy Create free account
hub / github.com/ElementsProject/elements / message

Method message

src/qt/rpcconsole.cpp:944–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944void RPCConsole::message(int category, const QString &message, bool html)
945{
946 QTime time = QTime::currentTime();
947 QString timeString = time.toString();
948 QString out;
949 out += "<table><tr><td class=\"time\" width=\"65\">" + timeString + "</td>";
950 out += "<td class=\"icon\" width=\"32\"><img src=\"" + categoryClass(category) + "\"></td>";
951 out += "<td class=\"message " + categoryClass(category) + "\" valign=\"middle\">";
952 if(html)
953 out += message;
954 else
955 out += GUIUtil::HtmlEscape(message, false);
956 out += "</td></tr></table>";
957 ui->messagesWidget->append(out);
958}
959
960void RPCConsole::updateNetworkState()
961{

Callers

nothing calls this directly

Calls 2

categoryClassFunction · 0.85
HtmlEscapeFunction · 0.85

Tested by

no test coverage detected