21 #include <unity/scopes/SearchListenerBase.h>
22 #include <unity/scopes/SearchReplyProxyFwd.h>
30 namespace experimental
40 class BufferedResultForwarderImpl;
62 BufferedResultForwarder::SPtr
const& next_forwarder = BufferedResultForwarder::SPtr());
107 friend class internal::BufferedResultForwarderImpl;
109 std::unique_ptr<internal::BufferedResultForwarderImpl> p;
unity::scopes::SearchReplyProxy upstream() const
Get the upstream proxy.
Definition: BufferedResultForwarder.cpp:151
void finished(CompletionDetails const &details) override
Called once by the scopes run time after the final result for a request was sent. ...
Definition: BufferedResultForwarder.cpp:156
bool is_ready() const
Check if this forwarder is ready.
Definition: BufferedResultForwarder.cpp:136
BufferedResultForwarder(unity::scopes::SearchReplyProxy const &upstream, BufferedResultForwarder::SPtr const &next_forwarder=BufferedResultForwarder::SPtr())
Create a forwarder that sends (at least one) result to its upstream reply proxy before indicating tha...
Definition: BufferedResultForwarder.cpp:126
Base class for a client to receive and buffer the results of a query until another BufferedResultForw...
Definition: BufferedResultForwarder.h:43
Top-level namespace for all things Unity-related.
Definition: Version.h:49
Definition: ActionMetadata.h:31
Abstract base interface for a client to receive the results of a query.
Definition: SearchListenerBase.h:56
A container for details about the completion status of a query as well as any additional information ...
Definition: CompletionDetails.h:45
void push(CategorisedResult result) override
Forwards a single result before calling set_ready().
Definition: BufferedResultForwarder.cpp:146
A result, including the category it belongs to.
Definition: CategorisedResult.h:41
std::shared_ptr< SearchReply > SearchReplyProxy
Convenience type definition.
Definition: SearchReplyProxyFwd.h:34
void set_ready()
Mark this forwarder as ready.
Definition: BufferedResultForwarder.cpp:141