File indexing completed on 2022-11-29 20:25:16

0001 /***************************************************************************
0002                           plugin.h  -  description
0003                              -------------------
0004     begin                : Sun Dec 30 2001
0005     copyright            : (C) 2001 by Dominik Seichter
0006     email                : domseichter@web.de
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #include "plugin.h"
0019 
0020 #include "tokenhelpdialog.h"
0021 
0022 Plugin::Plugin(PluginLoader *loader)
0023     : m_pluginLoader(loader), m_enabled(false)
0024 {
0025 }
0026 
0027 Plugin::~Plugin()
0028 {
0029 
0030 }
0031 
0032 void Plugin::loadConfig(KConfigGroup &)
0033 {
0034     /* Do nothing by default */
0035 }
0036 
0037 void Plugin::saveConfig(KConfigGroup &) const
0038 {
0039     /* Do nothing by default */
0040 }
0041 
0042 QString Plugin::createHelpEntry(const QString &token, const QString &help)
0043 {
0044     QString cmd('[');
0045     cmd = cmd + token + ']' + TokenHelpDialog::getTokenSeparator();
0046     cmd = cmd + help;
0047 
0048     return cmd;
0049 }
0050