author | harlekin <harlekin> | 2004-06-03 20:36:44 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-06-03 20:36:44 (UTC) |
commit | 52f849d3031f9d2fad2272ad069e7a1456c0ee54 (patch) (unidiff) | |
tree | 7d03d229363b81c40d180ee99d168e99c4f6c06e /core/pim/today/todayconfig.h | |
parent | 74109985fd9ebdffd6cf0416207a69b17b563fd6 (diff) | |
download | opie-52f849d3031f9d2fad2272ad069e7a1456c0ee54.zip opie-52f849d3031f9d2fad2272ad069e7a1456c0ee54.tar.gz opie-52f849d3031f9d2fad2272ad069e7a1456c0ee54.tar.bz2 |
updated today to use the new opluginloader, migration not finished yet but mostly working
-rw-r--r-- | core/pim/today/todayconfig.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h index 2b6c507..ab79f31 100644 --- a/core/pim/today/todayconfig.h +++ b/core/pim/today/todayconfig.h | |||
@@ -11,63 +11,77 @@ | |||
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #ifndef TODAYCONFIG_H | 17 | #ifndef TODAYCONFIG_H |
18 | #define TODAYCONFIG_H | 18 | #define TODAYCONFIG_H |
19 | 19 | ||
20 | #include "todayconfigmiscbase.h" | 20 | #include "todayconfigmiscbase.h" |
21 | 21 | ||
22 | #include <opie2/otabwidget.h> | 22 | #include <opie2/otabwidget.h> |
23 | #include <opie2/opluginloader.h> | ||
23 | 24 | ||
24 | #include <qvariant.h> | 25 | #include <qvariant.h> |
25 | #include <qdialog.h> | 26 | #include <qdialog.h> |
26 | #include <qlistview.h> | 27 | #include <qlistview.h> |
27 | 28 | ||
28 | class QCheckBox; | 29 | class QCheckBox; |
29 | class QLabel; | 30 | class QLabel; |
30 | class QSpinBox; | 31 | class QSpinBox; |
31 | class QTabWidget; | 32 | class QTabWidget; |
32 | 33 | ||
34 | namespace Opie { | ||
35 | namespace Core { | ||
36 | class OPluginManager; | ||
37 | class OPluginLoader; | ||
38 | class OPluginItem; | ||
39 | } | ||
40 | } | ||
41 | |||
33 | class TodayConfig : public QDialog { | 42 | class TodayConfig : public QDialog { |
34 | 43 | ||
35 | Q_OBJECT | 44 | Q_OBJECT |
36 | 45 | ||
37 | public: | 46 | public: |
38 | TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE ); | 47 | TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE ); |
39 | ~TodayConfig(); | 48 | ~TodayConfig(); |
40 | 49 | ||
41 | Opie::Ui::OTabWidget* TabWidget3; | 50 | Opie::Ui::OTabWidget* TabWidget3; |
42 | 51 | ||
43 | void writeConfig(); | 52 | void writeConfig(); |
44 | void pluginManagement( QString libName, QString name, QPixmap icon ); | ||
45 | 53 | ||
54 | void setUpPlugins( Opie::Core::OPluginManager * plugManager, Opie::Core::OPluginLoader * plugLoader ); | ||
46 | 55 | ||
47 | protected slots: | 56 | protected slots: |
48 | void appletChanged(); | ||
49 | void moveSelectedUp(); | 57 | void moveSelectedUp(); |
50 | void moveSelectedDown(); | 58 | void moveSelectedDown(); |
51 | 59 | ||
52 | private: | 60 | private: |
53 | void setAutoStart(); | 61 | void setAutoStart(); |
54 | void readConfig(); | 62 | void readConfig(); |
63 | void pluginManagement( Opie::Core::OPluginItem plugItem); | ||
55 | 64 | ||
56 | QListView* m_appletListView; | 65 | QListView* m_appletListView; |
57 | QMap<QString,QCheckListItem*> m_applets; | 66 | QMap<QString,QCheckListItem*> m_applets; |
58 | 67 | ||
59 | int m_autoStart; | 68 | int m_autoStart; |
60 | int m_autoStartTimer; | 69 | int m_autoStartTimer; |
61 | int m_iconSize; | 70 | int m_iconSize; |
62 | QStringList m_excludeApplets; | 71 | QStringList m_excludeApplets; |
63 | bool m_applets_changed; | 72 | bool m_applets_changed; |
64 | 73 | ||
65 | QWidget* tab_2; | 74 | QWidget* tab_2; |
66 | QWidget* tab_3; | 75 | QWidget* tab_3; |
67 | QLabel* TextLabel1, *TextLabel4; | 76 | QLabel* TextLabel1, *TextLabel4; |
68 | QSpinBox* SpinBox7; | 77 | QSpinBox* SpinBox7; |
69 | 78 | ||
79 | Opie::Core::OPluginManager *m_pluginManager; | ||
80 | Opie::Core::OPluginLoader *m_pluginLoader; | ||
81 | |||
82 | QCheckListItem *previousItem; | ||
83 | |||
70 | TodayConfigMiscBase *m_guiMisc; | 84 | TodayConfigMiscBase *m_guiMisc; |
71 | }; | 85 | }; |
72 | 86 | ||
73 | #endif | 87 | #endif |