Skip to content

ui::JumpListHost

Header: winui/ui/JumpList.hpp.

What keeps the app's jump list for ui::set_jump_list() and ui::add_recent_file().

There is one for the whole process: the platform's, or a double a test installs with ui::testing::set_jump_list_host(). App code calls the two free functions and never needs the class. It is public so a test double can derive from it.

~JumpListHost

virtual ~JumpListHost() = default

set_tasks

virtual void set_tasks(std::vector<JumpTask> tasks) = 0

Replaces the Tasks section with tasks.

add_recent_file

virtual void add_recent_file(const std::filesystem::path& path) = 0

Adds path to the recent files.