File indexing completed on 2024-05-19 16:31:52

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-only
0003     SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org>
0004  */
0005 
0006 #ifndef GENERIC_ACTION_DATA_H
0007 #define GENERIC_ACTION_DATA_H
0008 
0009 #include "action_data.h"
0010 
0011 namespace KHotKeys
0012 {
0013 class ActionDataGroup;
0014 
0015 class Q_DECL_EXPORT Generic_action_data : public ActionData
0016 {
0017     typedef ActionData base;
0018 
0019 public:
0020     Generic_action_data(ActionDataGroup *parent_P,
0021                         const QString &name_P = QString(),
0022                         const QString &comment_P = QString(),
0023                         Trigger_list *triggers_P = nullptr,
0024                         Condition_list *conditions_P = nullptr,
0025                         ActionList *actions_P = nullptr);
0026 
0027     ~Generic_action_data() override;
0028 
0029     /**
0030      * Visitor pattern
0031      * @reimp
0032      */
0033     void accept(ActionDataVisitor *visitor) override;
0034     void accept(ActionDataConstVisitor *visitor) const override;
0035 
0036     // CHECKME: Why this?
0037     using ActionData::add_action; // make public
0038     using ActionData::add_actions; // make public
0039     using ActionData::add_trigger; // make public
0040     using ActionData::add_triggers; // make public
0041     using ActionData::set_actions; // make public
0042     using ActionData::set_triggers; // make public
0043     using ActionDataBase::set_conditions; // make public
0044 };
0045 
0046 } // namespace KHotKeys
0047 
0048 #endif