Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
25
libs/map/viewport_search_params.hpp
Normal file
25
libs/map/viewport_search_params.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "search/result.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace search
|
||||
{
|
||||
struct ViewportSearchParams
|
||||
{
|
||||
using OnStarted = std::function<void()>;
|
||||
using OnCompleted = std::function<void(Results results)>;
|
||||
|
||||
std::string m_query;
|
||||
std::string m_inputLocale;
|
||||
std::optional<std::chrono::steady_clock::duration> m_timeout;
|
||||
bool m_isCategory = false;
|
||||
|
||||
OnStarted m_onStarted;
|
||||
OnCompleted m_onCompleted;
|
||||
};
|
||||
} // namespace search
|
||||
Loading…
Add table
Add a link
Reference in a new issue