Diffstat (limited to 'libopie2/opieui/opluginconfig.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/opluginconfig.h | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/libopie2/opieui/opluginconfig.h b/libopie2/opieui/opluginconfig.h index bfee5bf..0db1fcb 100644 --- a/libopie2/opieui/opluginconfig.h +++ b/libopie2/opieui/opluginconfig.h @@ -22,5 +22,6 @@ namespace Ui { * call save. * - * Internally we operate on Opie::Core::OPluginManager. + * Internally we operate on Opie::Core::OPluginManager. You can insert any numbers of loaders + * or pluginmanagers. But you need to call load() after you've inserted new items. * * @see Opie::Ui::OKeyConfigWidget @@ -41,19 +42,42 @@ public: WFlags fl ); - ~OPluginConfig(); + virtual ~OPluginConfig(); - void setChangeMode( enum Mode ); + void setChangeMode( enum ChangeMode ); ChangeMode mode()const; void insert( const QString&, const Opie::Core::OPluginManager* ); - void insert( const QString&, const Opie::Core::OPluginLoader* ); + void insert( const QString&, const Opie::Core::OGenericPluginLoader* ); signals: /** - * @param item The new OPluginItem + * A PluginItem was changed. This signal is only emitted if you're + * in the immediate ChangeMode. + * This is emitted on any change ( disable,enable,pos) + * + * @param item The OPluginItem that was changed. This is how it looks now + * @param old_state If it was enabled before */ void pluginChanged ( const Opie::Core::OPluginItem& item, bool old_state); + + /** + * emitted only if you're in Immediate when an Item was enabled + * + * @param item The Item that was enabled + */ void pluginEnabled ( const Opie::Core::OPluginItem& item); + + /** + * emitted only if you're in Immediate when an Item was enabled + * + * @param item The Item was disabled + */ void pluginDisabled( const Opie::Core::OPluginItem& item); + + /** + * Data was saved(). Normally this is emitted when save() is called + * @see changed + */ + void changed(); public: @@ -61,4 +85,6 @@ public: void save(); private: + ChangeMode m_mode; + QMap<Opie::Core::OPluginManager*, bool> m_items; }; |