mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-27 08:58:31 -04:00
* [EGD-3158] added UT for CallogTable and CalllogRecord * [EGD-3343] added notifications db
33 lines
918 B
C++
33 lines
918 B
C++
#include "QuerySMSSearch.hpp"
|
|
|
|
namespace db::query
|
|
{
|
|
SMSSearch::SMSSearch(std::string text_to_search, unsigned int starting_position, unsigned int depth)
|
|
: Query(Query::Type::Read), text(text_to_search), starting_postion(starting_position), depth(depth)
|
|
{}
|
|
|
|
auto SMSSearch::debugInfo() const -> std::string
|
|
{
|
|
return "SMSSearch";
|
|
}
|
|
|
|
SMSSearchResult::SMSSearchResult(unsigned int results_max_depth, std::vector<ThreadsTableRow> result_rows)
|
|
: results_max_depth(results_max_depth), results(result_rows)
|
|
{}
|
|
|
|
auto SMSSearchResult::getMax() const -> unsigned int
|
|
{
|
|
return results_max_depth;
|
|
}
|
|
|
|
auto SMSSearchResult::getResults() const -> std::vector<ThreadsTableRow>
|
|
{
|
|
return results;
|
|
}
|
|
|
|
[[nodiscard]] auto SMSSearchResult::debugInfo() const -> std::string
|
|
{
|
|
return "SMSSearchResult";
|
|
}
|
|
} // namespace db::query
|