Pulp
1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
reveal_in_file_manager.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <filesystem>
4
5
namespace
pulp::platform
{
6
10
enum class
RevealOutcome
{
13
revealed
,
16
opened_containing_folder
,
18
not_found
,
21
unsupported
,
23
failed
,
24
};
25
27
const
char
*
to_string
(
RevealOutcome
outcome)
noexcept
;
28
35
RevealOutcome
reveal_in_file_manager
(
const
std::filesystem::path& path);
36
37
}
// namespace pulp::platform
pulp::platform
Device capability vocabulary: one tier ladder, one thermal ladder, and the projection from observed i...
Definition
child_process.hpp:15
pulp::platform::reveal_in_file_manager
RevealOutcome reveal_in_file_manager(const std::filesystem::path &path)
Show path in the platform file manager: Finder (NSWorkspace activateFileViewerSelectingURLs),...
pulp::platform::RevealOutcome
RevealOutcome
What reveal_in_file_manager managed to do.
Definition
reveal_in_file_manager.hpp:10
pulp::platform::RevealOutcome::opened_containing_folder
@ opened_containing_folder
The item's containing folder was opened but the item itself could not be selected (Linux: no portable...
Definition
reveal_in_file_manager.hpp:16
pulp::platform::RevealOutcome::failed
@ failed
The platform call was attempted and failed.
Definition
reveal_in_file_manager.hpp:23
pulp::platform::RevealOutcome::revealed
@ revealed
The platform file manager was asked to show the item selected in its parent folder (macOS Finder,...
Definition
reveal_in_file_manager.hpp:13
pulp::platform::RevealOutcome::unsupported
@ unsupported
This platform has no file manager to ask (iOS, Android, or a Linux system without xdg-open).
Definition
reveal_in_file_manager.hpp:21
pulp::platform::RevealOutcome::not_found
@ not_found
The path does not exist; nothing was shown.
Definition
reveal_in_file_manager.hpp:18
pulp::platform::to_string
const char * to_string(RevealOutcome outcome) noexcept
Short stable name for an outcome ("revealed", "not_found", ...).
core
platform
include
pulp
platform
reveal_in_file_manager.hpp
Generated by
1.15.0