cli: search: implement -r, cleanup of options that don't belong there

This commit is contained in:
2019-08-19 21:09:03 +02:00
parent 014a31fa3c
commit f64362ac63
3 changed files with 19 additions and 12 deletions

View File

@ -23,6 +23,11 @@ QueryType QSSQuery::getQueryType()
return static_cast<QueryType>(tokensMask & COMBINED);
}
void QSSQuery::addSortCondition(SortCondition sc)
{
this->sortConditions.append(sc);
}
bool QSSQuery::checkParanthesis(QString expression)
{
QStack<QChar> open;

View File

@ -52,6 +52,7 @@ class QSSQuery
{
return tokensMask;
}
void addSortCondition(SortCondition sc);
static bool checkParanthesis(QString query);
static QSSQuery build(QString query);
};