1 // (c) 2004 Mark Kretschmann <markey@web.de>
2 // See COPYING file for licensing information.
4 #ifndef AMAROK_PLUGINCONFIG_H
5 #define AMAROK_PLUGINCONFIG_H
6 #include "amarok_export.h"
14 * Class to allow user configuration of your plugin; you provide a GUI widget via view()
17 class AMAROK_EXPORT PluginConfig
: public QObject
22 /** Emit whenever some view setting is changed by the user */
25 /** Emit after settings have been saved to config. Can be used for updating engine state. */
29 /** Return the view widget,
30 * The PluginConfig object owns this pointer, nobody else will delete it for you
32 virtual QWidget
* view() = 0;
34 /** Return true if any of the view settings are different to the currently saved state */
35 virtual bool hasChanged() const = 0;
37 /** Return true if all view settings are in their default states */
38 virtual bool isDefault() const = 0;
41 /** Save view state using, eg KConfig */
42 virtual void save() = 0;
46 #endif /*AMAROK_PLUGINCONFIG_H*/