23 #include "dmflagshtmlgenerator.h"
25 #include "serverapi/server.h"
28 DClass<DmflagsHtmlGenerator>
36 for (
int i = 0; i < section.
count(); ++i)
38 result +=
"<li>" + section[i].
name() +
"</li>";
51 DmflagsHtmlGenerator::~DmflagsHtmlGenerator()
55 QString DmflagsHtmlGenerator::generate()
58 const QList<DMFlagsSection> sections = d->server->dmFlags();
67 const int32_t numerical =
static_cast<int32_t
>(section.
combineValues());
69 result += QString(
"<li><b>%1 (%2):</b></li>").arg(section.
name()).arg(numerical);
71 result += d->mkSectionContents(section);
75 if (!result.isEmpty())
77 result =
"<ul>" + result +
"</ul>";