File indexing completed on 2022-10-04 17:30:21

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2001 Dominik Seichter <domseichter@web.de>
0003 
0004 #include "plugin.h"
0005 
0006 #include "tokenhelpdialog.h"
0007 
0008 Plugin::Plugin(PluginLoader *loader)
0009     : m_pluginLoader(loader), m_enabled(false)
0010 {
0011 }
0012 
0013 Plugin::~Plugin()
0014 {
0015 
0016 }
0017 
0018 void Plugin::loadConfig(KConfigGroup &)
0019 {
0020     /* Do nothing by default */
0021 }
0022 
0023 void Plugin::saveConfig(KConfigGroup &) const
0024 {
0025     /* Do nothing by default */
0026 }
0027 
0028 QString Plugin::createHelpEntry(const QString &token, const QString &help)
0029 {
0030     QString cmd('[');
0031     cmd = cmd + token + ']' + TokenHelpDialog::getTokenSeparator();
0032     cmd = cmd + help;
0033 
0034     return cmd;
0035 }
0036