21 #include <unity/scopes/AbstractScopeBase.h> 22 #include <unity/scopes/ActionMetadata.h> 23 #include <unity/scopes/SearchMetadata.h> 24 #include <unity/scopes/Version.h> 29 #define UNITY_SCOPE_CREATE_FUNCTION UNITY_SCOPES_VERSIONED_CREATE_SYM 34 #define UNITY_SCOPE_DESTROY_FUNCTION unity_scope_destroy 44 #define UNITY_SCOPE_CREATE_SYMSTR UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPE_CREATE_FUNCTION) 49 #define UNITY_SCOPE_DESTROY_SYMSTR UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPE_DESTROY_FUNCTION) 70 class TypedScopeFixtureHelper;
150 virtual void start(std::string
const& scope_id);
203 virtual ActivationQueryBase::UPtr activate(
Result const& result,
ActionMetadata const& metadata);
220 virtual ActivationQueryBase::UPtr perform_action(
Result const& result,
222 std::string
const& widget_id,
223 std::string
const& action_id);
236 virtual PreviewQueryBase::UPtr preview(
Result const& result,
ActionMetadata const& metadata) = 0;
241 static void runtime_version(
int& v_major,
int& v_minor,
int& v_micro) noexcept;
252 virtual std::string scope_directory()
const final;
266 virtual std::string cache_directory()
const final;
283 virtual std::string app_directory()
const final;
298 virtual std::string tmp_directory()
const final;
371 virtual ActivationQueryBase::UPtr activate_result_action(
Result const& result,
373 std::string
const& action_id);
379 std::unique_ptr<internal::ScopeBaseImpl> p;
381 friend class internal::RuntimeImpl;
382 friend class internal::ScopeObject;
383 friend class testing::TypedScopeFixtureHelper;
Base class for a scope implementation.
Definition: ScopeBase.h:133
The attributes of a result returned by a Scope.
Definition: Result.h:50
Definition: OnlineAccountClient.h:39
Top-level namespace for all things Unity-related.
Definition: Version.h:49
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:38
Definition: ActionMetadata.h:31
#define UNITY_SCOPE_CREATE_FUNCTION
Expands to the identifier of the scope create function.
Definition: ScopeBase.h:29
Parameters of a search query.
Definition: CannedQuery.h:49
decltype(&UNITY_SCOPE_CREATE_FUNCTION) typedef CreateFunction
Convenience typedef for the create function pointer.
Definition: ScopeBase.h:426
#define UNITY_SCOPE_DESTROY_FUNCTION
Expands to the identifier of the scope destroy function.
Definition: ScopeBase.h:34
decltype(&UNITY_SCOPE_DESTROY_FUNCTION) typedef DestroyFunction
Convenience typedef for the destroy function pointer.
Definition: ScopeBase.h:431
std::shared_ptr< Registry > RegistryProxy
Convenience type definition.
Definition: RegistryProxyFwd.h:33
Abstract base class for a scope implementation.
Definition: AbstractScopeBase.h:40
std::vector< ChildScope > ChildScopeList
A list of child scopes.
Definition: ChildScope.h:33