File indexing completed on 2024-05-26 16:43:25

0001 #ifndef MENUENTRY_SHORTCUT_ACTION_DATA_H
0002 #define MENUENTRY_SHORTCUT_ACTION_DATA_H
0003 /**
0004  * SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org>
0005  * SPDX-FileCopyrightText: 2009 Michael Jansen <kde@michael-jansen.biz>
0006  *
0007  * SPDX-License-Identifier: LGPL-2.0-or-later
0008  */
0009 
0010 #include "actions/actions.h"
0011 #include "simple_action_data.h"
0012 #include "triggers/triggers.h"
0013 
0014 namespace KHotKeys
0015 {
0016 class Q_DECL_EXPORT MenuEntryShortcutActionData : public SimpleActionDataHelper<ShortcutTrigger, MenuEntryAction>
0017 {
0018 public:
0019     typedef SimpleActionDataHelper<ShortcutTrigger, MenuEntryAction> base;
0020 
0021     MenuEntryShortcutActionData(ActionDataGroup *parent, const QString &name = QString(), const QString &comment = QString());
0022 
0023     MenuEntryShortcutActionData(ActionDataGroup *parent, const QString &name, const QString &comment, const QKeySequence &shortcut, const QString &command_url);
0024 
0025     /**
0026      * Visitor pattern
0027      * @reimp
0028      */
0029     void accept(ActionDataVisitor *visitor) override;
0030     void accept(ActionDataConstVisitor *visitor) const override;
0031 };
0032 
0033 } // namespace KHotKeys
0034 
0035 #endif /* MENUENTRY_SHORTCUT_ACTION_DATA_H */