Unity Scopes Qt library
|
#include <unity/scopes/qt/QScopeBaseAPI.h>
Public Member Functions | |
virtual void | start (std::string const &scope_id) override |
Called by the scopes run time after the create function completes. More... | |
virtual void | stop () override |
Called by the scopes run time when the scope should shut down. More... | |
virtual unity::scopes::PreviewQueryBase::UPtr | preview (const unity::scopes::Result &, const unity::scopes::ActionMetadata &) override |
virtual unity::scopes::SearchQueryBase::UPtr | search (unity::scopes::CannedQuery const &q, unity::scopes::SearchMetadata const &) override |
Defines the lifecycle of scope plugin, and acts as a factory for Query and Preview objects.
Note that the preview and search methods are each called on different threads, so some form of interlocking is required if shared data structures are used.
|
overridevirtual |
Called each time a new preview is requested
|
overridevirtual |
Called each time a new query is requested
|
overridevirtual |
|
overridevirtual |
Called by the scopes run time when the scope should shut down.
A scope should deallocate as many resources as possible when stop() is called, for example, deallocate any caches and close network connections. In addition, if the scope implements run() and did not return from run(), it must return from run() in response to the call to stop().
Exceptions from stop() are ignored.
The call to stop() is made by the same thread that calls the create function and start().