summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebook.h
Unidiff
Diffstat (limited to 'core/pim/datebook/datebook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.h4
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
29class QAction; 29class QAction;
30class QWidgetStack; 30class QWidgetStack;
31class DateBookDay; 31class DateBookDay;
32class DateBookWeek; 32class DateBookWeek;
33class DateBookWeekLst; 33class DateBookWeekLst;
34class DateBookMonth; 34class ODateBookMonth;
35class Event; 35class Event;
36class QDate; 36class QDate;
37class Ir; 37class Ir;
38 38
39class DateBook : public QMainWindow 39class DateBook : public QMainWindow
40{ 40{
41 Q_OBJECT 41 Q_OBJECT
42 42
43public: 43public:
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
48signals: 48signals:
49 void newEvent(); 49 void newEvent();
50 void signalNotFound(); 50 void signalNotFound();
51 void signalWrapAround(); 51 void signalWrapAround();
52 52
53protected: 53protected:
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
96private: 96private:
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
105private: 105private:
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