MCPcopy Create free account
hub / github.com/comaps/comaps / DeactivateHotelSearchMark

Method DeactivateHotelSearchMark

libs/map/framework.cpp:2054–2072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2052}
2053
2054void Framework::DeactivateHotelSearchMark()
2055{
2056 if (!m_currentPlacePageInfo)
2057 return;
2058
2059 m_searchMarks.SetSelected({});
2060 if (m_currentPlacePageInfo->IsHotel())
2061 {
2062 auto const & featureId = m_currentPlacePageInfo->GetID();
2063 if (m_searchMarks.IsThereSearchMarkForFeature(featureId))
2064 {
2065 m_searchMarks.SetVisited(featureId);
2066 m_searchMarks.OnDeactivate(featureId);
2067 }
2068
2069 if (!GetSearchAPI().IsViewportSearchActive())
2070 GetBookmarkManager().GetEditSession().ClearGroup(UserMark::Type::SEARCH);
2071 }
2072}
2073
2074void Framework::OnTapEvent(place_page::BuildInfo const & buildInfo)
2075{

Callers

nothing calls this directly

Calls 9

SetSelectedMethod · 0.80
IsHotelMethod · 0.80
SetVisitedMethod · 0.80
OnDeactivateMethod · 0.80
ClearGroupMethod · 0.80
GetEditSessionMethod · 0.80
GetIDMethod · 0.45

Tested by

no test coverage detected