2
JuffEd - An advanced text editor
3
Copyright 2007-2009 Mikhail Murzin
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
version 2 as published by the Free Software Foundation.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef __JUFF_PLUGINS_SETTINGS_H__
20
#define __JUFF_PLUGINS_SETTINGS_H__
26
class PluginSettings : public Settings {
29
/** Reads all settings from config file that are
30
* related to \a plugin and sends these settings
33
static void readSettings(JuffPlugin* plugin);
35
/** Gets settings from \a plugin and saves them
38
static void saveSettings(JuffPlugin* plugin);
40
/** Returns if plugin with name \a pluginName is
41
* enabled (supposed to be loaded).
43
static bool pluginEnabled(const QString& pluginName);
47
static void setPluginEnabled(const QString& pluginName, bool enabled);
52
* Stores a string \param value with a key \param key for \param plugin.
54
static void setStringValue(JuffPlugin* plugin, const QString& key, const QString& value);
59
* Returns a string value with a key \param key for \param plugin.
61
static QString getStringValue(JuffPlugin* plugin, const QString& key);
66
* Stores a bool \param value with a key \param key for \param plugin.
68
static void setBoolValue(JuffPlugin* plugin, const QString& key, bool value);
73
* Returns a bool value with a key \param key for \param plugin.
75
static bool getBoolValue(JuffPlugin* plugin, const QString& key);
78
#endif // __JUFF_PLUGINS_SETTINGS_H__