SetLibraryMountsCommand.h header

#include <ew/core/SetLibraryMountsCommand.h>

Namespace ew::core

SetLibraryMountsCommand class

class ew::core::SetLibraryMountsCommand

Command that replaces the project's list of mounted libraries (used to mount, unmount, or change a mount's permission by pushing the new list). Undo restores the previous list.

Members

ew::core::SetLibraryMountsCommand::SetLibraryMountsCommand(Project &project, std::vector< LibraryMount > mounts)

Creates a command that sets the project's mounts to mounts when applied.

ew::core::SetLibraryMountsCommand::~SetLibraryMountsCommand() override

Destroys the command.

void ew::core::SetLibraryMountsCommand::apply() override

Records the current mounts and applies the new list.

void ew::core::SetLibraryMountsCommand::undo() override

Restores the previous mounts.

QString ew::core::SetLibraryMountsCommand::description() const override

Returns a short description for the undo/redo UI.