File indexing completed on 2024-02-25 17:31:05

0001 /*
0002  * SPDX-FileCopyrightText: 2022 Aleix Pol i Gonzalez <aleixpol@kde.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QKeySequence>
0010 #include <QString>
0011 #include <optional>
0012 
0013 /**
0014  * Specifies a shortcut as defined in the xdg-specs:
0015  *
0016  * https://gitlab.freedesktop.org/xdg/xdg-specs/-/tree/master/shortcuts
0017  */
0018 
0019 namespace XdgShortcut
0020 {
0021 std::optional<QKeySequence> parse(const QString &shortcutString);
0022 }