Diffstat (limited to 'core/pim/datebook/datebook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index fb8b083..05ab781 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -10,49 +10,49 @@ | |||
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
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 | #ifndef DATEBOOK_H | 20 | #ifndef DATEBOOK_H |
21 | #define DATEBOOK_H | 21 | #define DATEBOOK_H |
22 | 22 | ||
23 | #include "datebooktypes.h" | 23 | #include "datebooktypes.h" |
24 | 24 | ||
25 | #include <qpe/datebookdb.h> | 25 | #include <qpe/datebookdb.h> |
26 | 26 | ||
27 | #include <qmainwindow.h> | 27 | #include <qmainwindow.h> |
28 | 28 | ||
29 | class QAction; | 29 | class QAction; |
30 | class QWidgetStack; | 30 | class QWidgetStack; |
31 | class DateBookDay; | 31 | class DateBookDay; |
32 | class DateBookWeek; | 32 | class DateBookWeek; |
33 | class DateBookWeekLst; | 33 | class DateBookWeekLst; |
34 | class DateBookMonth; | 34 | class ODateBookMonth; |
35 | class Event; | 35 | class Event; |
36 | class QDate; | 36 | class QDate; |
37 | class Ir; | 37 | class Ir; |
38 | 38 | ||
39 | class DateBook : public QMainWindow | 39 | class DateBook : public QMainWindow |
40 | { | 40 | { |
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | 42 | ||
43 | public: | 43 | public: |
44 | static QString appName() { return QString::fromLatin1("datebook"); } | 44 | static QString appName() { return QString::fromLatin1("datebook"); } |
45 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 45 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
46 | ~DateBook(); | 46 | ~DateBook(); |
47 | 47 | ||
48 | signals: | 48 | signals: |
49 | void newEvent(); | 49 | void newEvent(); |
50 | void signalNotFound(); | 50 | void signalNotFound(); |
51 | void signalWrapAround(); | 51 | void signalWrapAround(); |
52 | 52 | ||
53 | protected: | 53 | protected: |
54 | QDate currentDate(); | 54 | QDate currentDate(); |
55 | void timerEvent( QTimerEvent *e ); | 55 | void timerEvent( QTimerEvent *e ); |
56 | void closeEvent( QCloseEvent *e ); | 56 | void closeEvent( QCloseEvent *e ); |
57 | 57 | ||
58 | void view(int v, const QDate &d); | 58 | void view(int v, const QDate &d); |
@@ -87,48 +87,48 @@ private slots: | |||
87 | void editEvent( const Event &e ); | 87 | void editEvent( const Event &e ); |
88 | void duplicateEvent( const Event &e ); | 88 | void duplicateEvent( const Event &e ); |
89 | void removeEvent( const Event &e ); | 89 | void removeEvent( const Event &e ); |
90 | 90 | ||
91 | void receive( const QCString &msg, const QByteArray &data ); | 91 | void receive( const QCString &msg, const QByteArray &data ); |
92 | void setDocument( const QString & ); | 92 | void setDocument( const QString & ); |
93 | void beamEvent( const Event &e ); | 93 | void beamEvent( const Event &e ); |
94 | void beamDone( Ir *ir ); | 94 | void beamDone( Ir *ir ); |
95 | 95 | ||
96 | private: | 96 | private: |
97 | void addEvent( const Event &e ); | 97 | void addEvent( const Event &e ); |
98 | void initDay(); | 98 | void initDay(); |
99 | void initWeek(); | 99 | void initWeek(); |
100 | void initWeekLst(); | 100 | void initWeekLst(); |
101 | void initMonth(); | 101 | void initMonth(); |
102 | void loadSettings(); | 102 | void loadSettings(); |
103 | void saveSettings(); | 103 | void saveSettings(); |
104 | 104 | ||
105 | private: | 105 | private: |
106 | DateBookDBHoliday *db; | 106 | DateBookDBHoliday *db; |
107 | DateBookHoliday*db_holiday; | 107 | DateBookHoliday*db_holiday; |
108 | QWidgetStack *views; | 108 | QWidgetStack *views; |
109 | DateBookDay *dayView; | 109 | DateBookDay *dayView; |
110 | DateBookWeek *weekView; | 110 | DateBookWeek *weekView; |
111 | DateBookMonth *monthView; | 111 | ODateBookMonth *monthView; |
112 | DateBookWeekLst *weekLstView; | 112 | DateBookWeekLst *weekLstView; |
113 | QAction *dayAction, *weekAction, *weekLstAction, *monthAction; | 113 | QAction *dayAction, *weekAction, *weekLstAction, *monthAction; |
114 | int weeklistviewconfig; | 114 | int weeklistviewconfig; |
115 | bool aPreset; // have everything set to alarm? | 115 | bool aPreset; // have everything set to alarm? |
116 | int presetTime; // the standard time for the alarm | 116 | int presetTime; // the standard time for the alarm |
117 | int startTime; | 117 | int startTime; |
118 | int rowStyle; | 118 | int rowStyle; |
119 | int defaultView; | 119 | int defaultView; |
120 | QArray<int> defaultCategories; | 120 | QArray<int> defaultCategories; |
121 | QString defaultLocation; | 121 | QString defaultLocation; |
122 | bool bJumpToCurTime; //should jump to current time in dayview? | 122 | bool bJumpToCurTime; //should jump to current time in dayview? |
123 | bool ampm; | 123 | bool ampm; |
124 | bool onMonday; | 124 | bool onMonday; |
125 | 125 | ||
126 | bool syncing; | 126 | bool syncing; |
127 | bool inSearch; | 127 | bool inSearch; |
128 | 128 | ||
129 | int alarmCounter; | 129 | int alarmCounter; |
130 | 130 | ||
131 | QString checkEvent(const Event &); | 131 | QString checkEvent(const Event &); |
132 | }; | 132 | }; |
133 | 133 | ||
134 | #endif | 134 | #endif |