-rw-r--r-- | libopie2/opieui/opluginconfig.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opieui/opluginconfig.h b/libopie2/opieui/opluginconfig.h index 0db1fcb..c4f7213 100644 --- a/libopie2/opieui/opluginconfig.h +++ b/libopie2/opieui/opluginconfig.h | |||
@@ -1,47 +1,49 @@ | |||
1 | /* | 1 | /* |
2 | * LGPLv2 zecke@handhelds.org | 2 | * LGPLv2 zecke@handhelds.org |
3 | */ | 3 | */ |
4 | #ifndef ODP_OPIE_UI_OPLUGIN_CONFIG_H | 4 | #ifndef ODP_OPIE_UI_OPLUGIN_CONFIG_H |
5 | #define ODP_OPIE_UI_OPLUGIN_CONFIG_H | 5 | #define ODP_OPIE_UI_OPLUGIN_CONFIG_H |
6 | 6 | ||
7 | #include <qwidget.h> | 7 | #include <qwidget.h> |
8 | 8 | ||
9 | namespace Opie { | 9 | namespace Opie { |
10 | namespace Core { | 10 | namespace Core { |
11 | class OPluginManager; | 11 | class OPluginManager; |
12 | class OGenericPluginLoader; | 12 | class OGenericPluginLoader; |
13 | } | 13 | } |
14 | namespace Ui { | 14 | namespace Ui { |
15 | /** | 15 | /** |
16 | * API IDEA - not usable this moment! | ||
17 | * | ||
16 | * With this widget you can configure one or many PluginLoaders either | 18 | * With this widget you can configure one or many PluginLoaders either |
17 | * through an already existing Opie::Core::OPluginManager or Opie::Core::OGenericPluginLoader | 19 | * through an already existing Opie::Core::OPluginManager or Opie::Core::OGenericPluginLoader |
18 | * The sorted state will be read from the Loader. | 20 | * The sorted state will be read from the Loader. |
19 | * | 21 | * |
20 | * As with Opie::Ui::OKeyConfigWidget you can have two options. To either apply your changes | 22 | * As with Opie::Ui::OKeyConfigWidget you can have two options. To either apply your changes |
21 | * directly through Opie::Core::OPluginManager or to use Queued where you manually need to | 23 | * directly through Opie::Core::OPluginManager or to use Queued where you manually need to |
22 | * call save. | 24 | * call save. |
23 | * | 25 | * |
24 | * Internally we operate on Opie::Core::OPluginManager. You can insert any numbers of loaders | 26 | * Internally we operate on Opie::Core::OPluginManager. You can insert any numbers of loaders |
25 | * or pluginmanagers. But you need to call load() after you've inserted new items. | 27 | * or pluginmanagers. But you need to call load() after you've inserted new items. |
26 | * | 28 | * |
27 | * @see Opie::Ui::OKeyConfigWidget | 29 | * @see Opie::Ui::OKeyConfigWidget |
28 | * @see Opie::Core::OPluginLoader | 30 | * @see Opie::Core::OPluginLoader |
29 | * @see Opie::Core::OPluginManager | 31 | * @see Opie::Core::OPluginManager |
30 | * | 32 | * |
31 | * @author zecke | 33 | * @author zecke |
32 | * @since Opie 1.1.5 | 34 | * @since Opie 1.1.5 |
33 | * | 35 | * |
34 | */ | 36 | */ |
35 | class OPluginConfigWidget : public QWidget { | 37 | class OPluginConfigWidget : public QWidget { |
36 | public: | 38 | public: |
37 | enum ChangeMode { Queued, Immediate }; | 39 | enum ChangeMode { Queued, Immediate }; |
38 | OPluginConfigWidget( QWidget* wid = 0, const char* name = 0, WFlags fl = 0); | 40 | OPluginConfigWidget( QWidget* wid = 0, const char* name = 0, WFlags fl = 0); |
39 | OPluginConfig( Opie::Core::OPluginManager* manager, QWidget* wid = 0, | 41 | OPluginConfig( Opie::Core::OPluginManager* manager, QWidget* wid = 0, |
40 | const char* name = 0, WFlags fl = 0); | 42 | const char* name = 0, WFlags fl = 0); |
41 | OPluginConfig( Opie::Core::OGenericPluginLoader* loader, QWidget* wid, const char* name, | 43 | OPluginConfig( Opie::Core::OGenericPluginLoader* loader, QWidget* wid, const char* name, |
42 | WFlags fl ); | 44 | WFlags fl ); |
43 | 45 | ||
44 | virtual ~OPluginConfig(); | 46 | virtual ~OPluginConfig(); |
45 | 47 | ||
46 | void setChangeMode( enum ChangeMode ); | 48 | void setChangeMode( enum ChangeMode ); |
47 | ChangeMode mode()const; | 49 | ChangeMode mode()const; |