summaryrefslogtreecommitdiff
path: root/libopie2/opieui/opluginconfig.h
authorzecke <zecke>2004-05-28 16:20:57 (UTC)
committer zecke <zecke>2004-05-28 16:20:57 (UTC)
commit9521c1627157bf15824b5b55b9782b87cc610df6 (patch) (unidiff)
treeee0d9dc734e8db0e85a3e4d6ad0ee548c31f4115 /libopie2/opieui/opluginconfig.h
parent8db08a3d320e48924d0ccd78d2bd177e316fff90 (diff)
downloadopie-9521c1627157bf15824b5b55b9782b87cc610df6.zip
opie-9521c1627157bf15824b5b55b9782b87cc610df6.tar.gz
opie-9521c1627157bf15824b5b55b9782b87cc610df6.tar.bz2
Ideas of the API of the Generic PluginLoader
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 {
23 * 23 *
24 * Internally we operate on Opie::Core::OPluginManager. 24 * 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.
25 * 26 *
@@ -42,5 +43,5 @@ public:
42 43
43 ~OPluginConfig(); 44 virtual ~OPluginConfig();
44 45
45 void setChangeMode( enum Mode ); 46 void setChangeMode( enum ChangeMode );
46 ChangeMode mode()const; 47 ChangeMode mode()const;
@@ -48,3 +49,3 @@ public:
48 void insert( const QString&, const Opie::Core::OPluginManager* ); 49 void insert( const QString&, const Opie::Core::OPluginManager* );
49 void insert( const QString&, const Opie::Core::OPluginLoader* ); 50 void insert( const QString&, const Opie::Core::OGenericPluginLoader* );
50 51
@@ -52,7 +53,30 @@ signals:
52 /** 53 /**
53 * @param item The new OPluginItem 54 * A PluginItem was changed. This signal is only emitted if you're
55 * in the immediate ChangeMode.
56 * This is emitted on any change ( disable,enable,pos)
57 *
58 * @param item The OPluginItem that was changed. This is how it looks now
59 * @param old_state If it was enabled before
54 */ 60 */
55 void pluginChanged ( const Opie::Core::OPluginItem& item, bool old_state); 61 void pluginChanged ( const Opie::Core::OPluginItem& item, bool old_state);
62
63 /**
64 * emitted only if you're in Immediate when an Item was enabled
65 *
66 * @param item The Item that was enabled
67 */
56 void pluginEnabled ( const Opie::Core::OPluginItem& item); 68 void pluginEnabled ( const Opie::Core::OPluginItem& item);
69
70 /**
71 * emitted only if you're in Immediate when an Item was enabled
72 *
73 * @param item The Item was disabled
74 */
57 void pluginDisabled( const Opie::Core::OPluginItem& item); 75 void pluginDisabled( const Opie::Core::OPluginItem& item);
76
77 /**
78 * Data was saved(). Normally this is emitted when save() is called
79 * @see changed
80 */
81 void changed();
58public: 82public:
@@ -62,2 +86,4 @@ public:
62private: 86private:
87 ChangeMode m_mode;
88 QMap<Opie::Core::OPluginManager*, bool> m_items;
63 89