40 QStringList parts = circuit.split(
" ", QString::SkipEmptyParts);
41 if (parts.size() >= 2) {
51 if (parts.size() > 2 && parts.at(2).startsWith(
"$")) {
52 foreach (QString hop, parts.at(2).split(
",")) {
53 QStringList parts = hop.split(QRegExp(
"[=~]"));
54 if (parts.size() != 2)
57 _ids << parts.at(0).mid(1);
67 tc::warn(
"Improperly formatted circuit: '%1'").
arg(circuit);
76 int length = circId.length();
77 if (length < 1 || length > 16)
81 char c = circId[
i].toAscii();
82 if (c < '0' && c >
'9' && c < 'A' && c >
'Z' && c < 'a' && c >
'z')
92 if (!
status.compare(
"LAUNCHED", Qt::CaseInsensitive))
94 if (!
status.compare(
"BUILT", Qt::CaseInsensitive))
96 if (!
status.compare(
"EXTENDED", Qt::CaseInsensitive))
98 if (!
status.compare(
"FAILED", Qt::CaseInsensitive))
100 if (!
status.compare(
"CLOSED", Qt::CaseInsensitive))
116 default:
status = tr(
"Unknown");
break;
static bool isValidCircuitId(const CircuitId &circId)
static Status toStatus(const QString &strStatus)
QString statusString() const
DebugMessage arg(const QString &a)
DebugMessage warn(const QString &fmt)
bool err(QString *str, const QString &errmsg)