File indexing completed on 2024-12-01 13:34:28

0001 /*
0002    SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org>
0003    SPDX-FileCopyrightText: 2008 Michael Jansen <kde@michael-jansen.biz>
0004 
0005    SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #include "actions.h"
0009 
0010 #include <KConfigGroup>
0011 #include <QDebug>
0012 
0013 namespace KHotKeys
0014 {
0015 ActionVisitor::~ActionVisitor()
0016 {
0017 }
0018 
0019 Action::Action(ActionData *data_P)
0020     : data(data_P)
0021 {
0022 }
0023 
0024 Action::~Action()
0025 {
0026 }
0027 
0028 void Action::aboutToBeErased()
0029 {
0030     // Nothing to do yet.
0031 }
0032 
0033 void Action::cfg_write(KConfigGroup &cfg_P) const
0034 {
0035     cfg_P.writeEntry("Type", "ERROR"); // derived classes should call with their type
0036 }
0037 
0038 } // namespace KHotKeys