21#ifndef __ANTARES_UI_COMMON_COMPONENT_SPOTLIGHT_SPOTLIGHT_PROVIDER_HXX__
22#define __ANTARES_UI_COMMON_COMPONENT_SPOTLIGHT_SPOTLIGHT_PROVIDER_HXX__
29class IProvider :
public Yuni::IEventObserver<Spotlight>
33 using Ptr = std::shared_ptr<IProvider>;
55 const Yuni::String& text =
"")
84 friend class Spotlight;
std::vector< Ptr > Vector
Vector of items.
Definition iitem.h:32
std::shared_ptr< IItem > Ptr
Ptr.
Definition iitem.h:30
Data Provider.
Definition provider.h:30
virtual void search(IItem::Vector &out, const SearchToken::Vector &tokens, const Yuni::String &text="")=0
Rebuild the result list from a list of tokens.
std::shared_ptr< IProvider > Ptr
ptr
Definition provider.h:33
Spotlight * component() const
Get the pointer of the attached component (can be null)
virtual bool onSelect(const IItem::Vector &items)
Event: a list of items have been selected (more than one)
virtual bool onSelect(IItem::Ptr &item)
Event: an item has been selected.
virtual bool onDoubleClickSelect(IItem::Ptr &item)
Event: an item has been selected.
IProvider()
Default constructor.
Definition provider.h:41
void redoResearch()
Redo the research.
Spotlight * pSpotlightComponent
The parent component (can be null)
Definition provider.h:83
virtual ~IProvider()
Destructor.
std::vector< Ptr > Vector
Vector of search tokens.
Definition searchtoken.h:33