Diffstat (limited to 'core/pim/datebook/datebooktypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebooktypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/pim/datebook/datebooktypes.h b/core/pim/datebook/datebooktypes.h index 2966814..9453be8 100644 --- a/core/pim/datebook/datebooktypes.h +++ b/core/pim/datebook/datebooktypes.h | |||
@@ -1,45 +1,48 @@ | |||
1 | #ifndef _DATEBOOK_TYPES_H | 1 | #ifndef _DATEBOOK_TYPES_H |
2 | #define _DATEBOOK_TYPES_H | 2 | #define _DATEBOOK_TYPES_H |
3 | 3 | ||
4 | #include <qpe/datebookdb.h> | 4 | #include <qpe/datebookdb.h> |
5 | 5 | ||
6 | #include <qvaluelist.h> | 6 | #include <qvaluelist.h> |
7 | #include <qstringlist.h> | 7 | #include <qstringlist.h> |
8 | 8 | ||
9 | namespace Opie { | 9 | namespace Opie { |
10 | namespace Datebook { | 10 | namespace Datebook { |
11 | class HolidayPlugin; | 11 | class HolidayPlugin; |
12 | class HolidayPluginIf; | 12 | class HolidayPluginIf; |
13 | } | 13 | } |
14 | namespace Core { | 14 | namespace Core { |
15 | class OPluginLoader; | 15 | class OPluginLoader; |
16 | class OPluginManager; | 16 | class OPluginManager; |
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | class QLibrary; | 20 | class QLibrary; |
21 | 21 | ||
22 | enum { DAY=1,WEEK,WEEKLST,MONTH }; // defaultView values | ||
23 | enum { NONE=0,NORMAL,EXTENDED }; // WeekLstView's modes. | ||
24 | |||
22 | class DateBookDBHack : virtual public DateBookDB { | 25 | class DateBookDBHack : virtual public DateBookDB { |
23 | public: | 26 | public: |
24 | virtual ~DateBookDBHack(){} | 27 | virtual ~DateBookDBHack(){} |
25 | Event eventByUID(int id); | 28 | Event eventByUID(int id); |
26 | }; | 29 | }; |
27 | 30 | ||
28 | class DateBookHoliday | 31 | class DateBookHoliday |
29 | { | 32 | { |
30 | public: | 33 | public: |
31 | DateBookHoliday(); | 34 | DateBookHoliday(); |
32 | virtual ~DateBookHoliday(); | 35 | virtual ~DateBookHoliday(); |
33 | 36 | ||
34 | QStringList holidaylist(const QDate&); | 37 | QStringList holidaylist(const QDate&); |
35 | QStringList holidaylist(unsigned year, unsigned month, unsigned day); | 38 | QStringList holidaylist(unsigned year, unsigned month, unsigned day); |
36 | virtual QValueList<EffectiveEvent> getEffectiveEvents(const QDate &from,const QDate &to ); | 39 | virtual QValueList<EffectiveEvent> getEffectiveEvents(const QDate &from,const QDate &to ); |
37 | virtual QValueList<EffectiveEvent> getEffectiveEvents(const QDateTime &start); | 40 | virtual QValueList<EffectiveEvent> getEffectiveEvents(const QDateTime &start); |
38 | 41 | ||
39 | void reloadPlugins(); | 42 | void reloadPlugins(); |
40 | 43 | ||
41 | Opie::Core::OPluginLoader*pluginLoader(){return m_pluginLoader;} | 44 | Opie::Core::OPluginLoader*pluginLoader(){return m_pluginLoader;} |
42 | Opie::Core::OPluginManager*pluginManager(){return m_pluginManager;} | 45 | Opie::Core::OPluginManager*pluginManager(){return m_pluginManager;} |
43 | 46 | ||
44 | protected: | 47 | protected: |
45 | void init(); | 48 | void init(); |