summaryrefslogtreecommitdiff
path: root/libopie2/opieui/opluginconfig.h
Side-by-side diff
Diffstat (limited to 'libopie2/opieui/opluginconfig.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/opluginconfig.h36
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
@@ -23,3 +23,4 @@ namespace Ui {
*
- * 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.
*
@@ -42,5 +43,5 @@ public:
- ~OPluginConfig();
+ virtual ~OPluginConfig();
- void setChangeMode( enum Mode );
+ void setChangeMode( enum ChangeMode );
ChangeMode mode()const;
@@ -48,3 +49,3 @@ public:
void insert( const QString&, const Opie::Core::OPluginManager* );
- void insert( const QString&, const Opie::Core::OPluginLoader* );
+ void insert( const QString&, const Opie::Core::OGenericPluginLoader* );
@@ -52,7 +53,30 @@ 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:
@@ -62,2 +86,4 @@ public:
private:
+ ChangeMode m_mode;
+ QMap<Opie::Core::OPluginManager*, bool> m_items;