mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 01:03:46 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
26
libs/map/everywhere_search_params.hpp
Normal file
26
libs/map/everywhere_search_params.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "map/search_product_info.hpp"
|
||||
|
||||
#include "search/result.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace search
|
||||
{
|
||||
struct EverywhereSearchParams
|
||||
{
|
||||
using OnResults = std::function<void(Results results, std::vector<ProductInfo> productInfo)>;
|
||||
|
||||
std::string m_query;
|
||||
std::string m_inputLocale;
|
||||
std::optional<std::chrono::steady_clock::duration> m_timeout;
|
||||
bool m_isCategory = false;
|
||||
|
||||
OnResults m_onResults;
|
||||
};
|
||||
} // namespace search
|
||||
Reference in New Issue
Block a user