author | alwin <alwin> | 2005-03-18 16:57:24 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-18 16:57:24 (UTC) |
commit | 977193cc46768da220ddb01aca74286b28e6b7ee (patch) (unidiff) | |
tree | eff59fc4011b0b3a6fd610b2b04e934eb21a0687 /core/pim/datebook/datebooksettings.h | |
parent | f32b76432aeb554204f06ca15ed1ec8d5387fb12 (diff) | |
download | opie-977193cc46768da220ddb01aca74286b28e6b7ee.zip opie-977193cc46768da220ddb01aca74286b28e6b7ee.tar.gz opie-977193cc46768da220ddb01aca74286b28e6b7ee.tar.bz2 |
work on plugins finished.
these plugins now may have a config-widget (sorry guys - I had to change the
plugininterface and so the UUID again.)
the plugin for nationalholidays now has such a widget, the datebook will insert
configwidgets into its settingsdialog.
corrected the .pro file of opiepim2/ui so it contains the header/cpp files
for that pluginsystem.
Diffstat (limited to 'core/pim/datebook/datebooksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebooksettings.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/pim/datebook/datebooksettings.h b/core/pim/datebook/datebooksettings.h index df7d32c..912088f 100644 --- a/core/pim/datebook/datebooksettings.h +++ b/core/pim/datebook/datebooksettings.h | |||
@@ -13,59 +13,65 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #ifndef DATEBOOKSETTINGS_H | 21 | #ifndef DATEBOOKSETTINGS_H |
22 | #define DATEBOOKSETTINGS_H | 22 | #define DATEBOOKSETTINGS_H |
23 | #include "datebooksettingsbase.h" | 23 | #include "datebooksettingsbase.h" |
24 | #include <qpe/categoryselect.h> | 24 | #include <qpe/categoryselect.h> |
25 | #include <qvaluelist.h> | ||
25 | 26 | ||
26 | namespace Opie { | 27 | namespace Opie { |
27 | namespace Core { | 28 | namespace Core { |
28 | class OPluginManager; | 29 | class OPluginManager; |
29 | class OGenericPluginLoader; | 30 | class OGenericPluginLoader; |
30 | class OPluginLoader; | 31 | class OPluginLoader; |
31 | } | 32 | } |
32 | namespace Ui { | 33 | namespace Ui { |
33 | class OPluginConfigWidget; | 34 | class OPluginConfigWidget; |
34 | } | 35 | } |
36 | namespace Datebook { | ||
37 | class HolidayPluginConfigWidget; | ||
38 | } | ||
35 | } | 39 | } |
36 | 40 | ||
37 | class DateBookSettings : public DateBookSettingsBase | 41 | class DateBookSettings : public DateBookSettingsBase |
38 | { | 42 | { |
39 | Q_OBJECT | 43 | Q_OBJECT |
40 | public: | 44 | public: |
41 | DateBookSettings( bool whichClock, QWidget *parent = 0, | 45 | DateBookSettings( bool whichClock, QWidget *parent = 0, |
42 | const char *name = 0, bool modal = TRUE, WFlags = 0 ); | 46 | const char *name = 0, bool modal = TRUE, WFlags = 0 ); |
43 | ~DateBookSettings(); | 47 | ~DateBookSettings(); |
44 | void setStartTime( int newStartViewTime ); | 48 | void setStartTime( int newStartViewTime ); |
45 | int startTime() const; | 49 | int startTime() const; |
46 | void setAlarmPreset( bool bAlarm, int presetTime ); | 50 | void setAlarmPreset( bool bAlarm, int presetTime ); |
47 | bool alarmPreset() const; | 51 | bool alarmPreset() const; |
48 | int presetTime() const; | 52 | int presetTime() const; |
49 | void setAlarmType( int alarmType ); | 53 | void setAlarmType( int alarmType ); |
50 | int alarmType() const; | 54 | int alarmType() const; |
51 | 55 | ||
52 | void setJumpToCurTime( bool bJump ); | 56 | void setJumpToCurTime( bool bJump ); |
53 | bool jumpToCurTime() const; | 57 | bool jumpToCurTime() const; |
54 | void setRowStyle( int style ); | 58 | void setRowStyle( int style ); |
55 | int rowStyle() const; | 59 | int rowStyle() const; |
56 | 60 | ||
57 | void setPluginList(Opie::Core::OPluginManager*,Opie::Core::OPluginLoader*); | 61 | void setPluginList(Opie::Core::OPluginManager*,Opie::Core::OPluginLoader*); |
62 | void savePlugins(); | ||
58 | private slots: | 63 | private slots: |
59 | void slot12Hour( int ); | 64 | void slot12Hour( int ); |
60 | void slotChangeClock( bool ); | 65 | void slotChangeClock( bool ); |
61 | protected slots: | 66 | protected slots: |
62 | virtual void pluginItemClicked(QListViewItem *); | 67 | virtual void pluginItemClicked(QListViewItem *); |
63 | 68 | ||
64 | protected: | 69 | protected: |
65 | void init(); | 70 | void init(); |
66 | bool ampm; | 71 | bool ampm; |
67 | int oldtime; | 72 | int oldtime; |
68 | Opie::Core::OPluginManager*m_manager; | 73 | Opie::Core::OPluginManager*m_manager; |
69 | Opie::Core::OPluginLoader*m_loader; | 74 | Opie::Core::OPluginLoader*m_loader; |
75 | QValueList<Opie::Datebook::HolidayPluginConfigWidget*> m_cfgWidgets; | ||
70 | }; | 76 | }; |
71 | #endif | 77 | #endif |