1 // This file is part of Desktop App Toolkit,
2 // a set of libraries for developing nice desktop applications.
3 //
4 // For license and copyright information please follow this link:
5 // https://github.com/desktop-app/legal/blob/master/LEGAL
6 //
7 #pragma once
8 
9 #include "base/global_shortcuts_generic.h"
10 
11 namespace base::Platform::GlobalShortcuts {
12 
13 [[nodiscard]] bool Available();
14 [[nodiscard]] bool Allowed();
15 
16 void Start(Fn<void(GlobalShortcutKeyGeneric descriptor, bool down)> process);
17 void Stop();
18 
19 [[nodiscard]] QString KeyName(GlobalShortcutKeyGeneric descriptor);
20 
21 } // namespace base::Platform::GlobalShortcuts
22