summaryrefslogtreecommitdiff
path: root/libopie2
authorbero <bero>2005-06-21 16:10:04 (UTC)
committer bero <bero>2005-06-21 16:10:04 (UTC)
commitbd38850dfdbc8f37c73d182992c22c5e1242c0d3 (patch) (unidiff)
tree3957edb9b5b01c2beb15cc241d71ef5399d7e7da /libopie2
parent6d4379546a9ae0ca397463820fe81126703f53c5 (diff)
downloadopie-bd38850dfdbc8f37c73d182992c22c5e1242c0d3.zip
opie-bd38850dfdbc8f37c73d182992c22c5e1242c0d3.tar.gz
opie-bd38850dfdbc8f37c73d182992c22c5e1242c0d3.tar.bz2
Can't have signals without Q_OBJECT...
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/opluginconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opieui/opluginconfig.h b/libopie2/opieui/opluginconfig.h
index c4f7213..59b63ef 100644
--- a/libopie2/opieui/opluginconfig.h
+++ b/libopie2/opieui/opluginconfig.h
@@ -14,48 +14,49 @@ namespace Core {
14namespace Ui { 14namespace Ui {
15/** 15/**
16 * API IDEA - not usable this moment! 16 * API IDEA - not usable this moment!
17 * 17 *
18 * With this widget you can configure one or many PluginLoaders either 18 * With this widget you can configure one or many PluginLoaders either
19 * through an already existing Opie::Core::OPluginManager or Opie::Core::OGenericPluginLoader 19 * through an already existing Opie::Core::OPluginManager or Opie::Core::OGenericPluginLoader
20 * The sorted state will be read from the Loader. 20 * The sorted state will be read from the Loader.
21 * 21 *
22 * 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
23 * 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
24 * call save. 24 * call save.
25 * 25 *
26 * 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
27 * 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.
28 * 28 *
29 * @see Opie::Ui::OKeyConfigWidget 29 * @see Opie::Ui::OKeyConfigWidget
30 * @see Opie::Core::OPluginLoader 30 * @see Opie::Core::OPluginLoader
31 * @see Opie::Core::OPluginManager 31 * @see Opie::Core::OPluginManager
32 * 32 *
33 * @author zecke 33 * @author zecke
34 * @since Opie 1.1.5 34 * @since Opie 1.1.5
35 * 35 *
36 */ 36 */
37class OPluginConfigWidget : public QWidget { 37class OPluginConfigWidget : public QWidget {
38 Q_OBJECT
38public: 39public:
39 enum ChangeMode { Queued, Immediate }; 40 enum ChangeMode { Queued, Immediate };
40 OPluginConfigWidget( QWidget* wid = 0, const char* name = 0, WFlags fl = 0); 41 OPluginConfigWidget( QWidget* wid = 0, const char* name = 0, WFlags fl = 0);
41 OPluginConfig( Opie::Core::OPluginManager* manager, QWidget* wid = 0, 42 OPluginConfig( Opie::Core::OPluginManager* manager, QWidget* wid = 0,
42 const char* name = 0, WFlags fl = 0); 43 const char* name = 0, WFlags fl = 0);
43 OPluginConfig( Opie::Core::OGenericPluginLoader* loader, QWidget* wid, const char* name, 44 OPluginConfig( Opie::Core::OGenericPluginLoader* loader, QWidget* wid, const char* name,
44 WFlags fl ); 45 WFlags fl );
45 46
46 virtual ~OPluginConfig(); 47 virtual ~OPluginConfig();
47 48
48 void setChangeMode( enum ChangeMode ); 49 void setChangeMode( enum ChangeMode );
49 ChangeMode mode()const; 50 ChangeMode mode()const;
50 51
51 void insert( const QString&, const Opie::Core::OPluginManager* ); 52 void insert( const QString&, const Opie::Core::OPluginManager* );
52 void insert( const QString&, const Opie::Core::OGenericPluginLoader* ); 53 void insert( const QString&, const Opie::Core::OGenericPluginLoader* );
53 54
54signals: 55signals:
55 /** 56 /**
56 * A PluginItem was changed. This signal is only emitted if you're 57 * A PluginItem was changed. This signal is only emitted if you're
57 * in the immediate ChangeMode. 58 * in the immediate ChangeMode.
58 * This is emitted on any change ( disable,enable,pos) 59 * This is emitted on any change ( disable,enable,pos)
59 * 60 *
60 * @param item The OPluginItem that was changed. This is how it looks now 61 * @param item The OPluginItem that was changed. This is how it looks now
61 * @param old_state If it was enabled before 62 * @param old_state If it was enabled before