Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 70dd7b5..0579279 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp | |||
@@ -5,77 +5,78 @@ | |||
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
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 | ** $Id$ | 19 | ** $Id$ |
20 | ** | 20 | ** |
21 | **********************************************************************/ | 21 | **********************************************************************/ |
22 | 22 | ||
23 | #define QTOPIA_INTERNAL_FD | 23 | #define QTOPIA_INTERNAL_FD |
24 | 24 | ||
25 | #include "datebook.h" | 25 | #include "datebook.h" |
26 | #include "datebookday.h" | 26 | #include "datebookday.h" |
27 | #include "datebooksettings.h" | 27 | #include "datebooksettings.h" |
28 | #include "datebookweek.h" | 28 | #include "datebookweek.h" |
29 | #include "datebookweeklst.h" | 29 | #include "modules/weeklst/datebookweeklst.h" |
30 | #include "dateentryimpl.h" | 30 | #include "dateentryimpl.h" |
31 | 31 | ||
32 | #include <opie2/odebug.h> | 32 | #include <opie2/odebug.h> |
33 | #include <opie2/oholidaypluginif.h> | 33 | #include <opie2/oholidaypluginif.h> |
34 | #include <opie2/oholidayplugin.h> | 34 | #include <opie2/oholidayplugin.h> |
35 | #include <opie2/opluginloader.h> | 35 | #include <opie2/opluginloader.h> |
36 | #include <opie2/todayplugininterface.h> | 36 | #include <opie2/todayplugininterface.h> |
37 | 37 | ||
38 | #include <qpe/datebookmonth.h> | 38 | #include <qpe/datebookmonth.h> |
39 | #include <qpe/qpeapplication.h> | 39 | #include <qpe/qpeapplication.h> |
40 | #include <qpe/config.h> | 40 | #include <qpe/config.h> |
41 | #include <qpe/finddialog.h> | 41 | #include <qpe/finddialog.h> |
42 | #include <qpe/ir.h> | 42 | #include <qpe/ir.h> |
43 | #include <qpe/qpemessagebox.h> | 43 | #include <qpe/qpemessagebox.h> |
44 | #include <qpe/resource.h> | 44 | #include <qpe/resource.h> |
45 | #include <qpe/sound.h> | 45 | #include <qpe/sound.h> |
46 | #include <qpe/tzselect.h> | 46 | #include <qpe/tzselect.h> |
47 | #include <qtopia/qlibrary.h> | ||
47 | 48 | ||
48 | #include <qaction.h> | 49 | #include <qaction.h> |
49 | #include <qcopchannel_qws.h> | 50 | #include <qcopchannel_qws.h> |
50 | #include <qlayout.h> | 51 | #include <qlayout.h> |
51 | #include <qmessagebox.h> | 52 | #include <qmessagebox.h> |
52 | #include <qtimer.h> | 53 | #include <qtimer.h> |
53 | #include <qtl.h> | 54 | #include <qtl.h> |
54 | #include <qtoolbar.h> | 55 | #include <qtoolbar.h> |
55 | #include <qwidgetstack.h> | 56 | #include <qwidgetstack.h> |
56 | #include <qdir.h> | 57 | #include <qdir.h> |
57 | #include <qtopia/qlibrary.h> | 58 | #include <qlabel.h> |
58 | 59 | ||
59 | #include <sys/stat.h> | 60 | #include <sys/stat.h> |
60 | #include <sys/types.h> | 61 | #include <sys/types.h> |
61 | #include <fcntl.h> | 62 | #include <fcntl.h> |
62 | #include <unistd.h> | 63 | #include <unistd.h> |
63 | 64 | ||
64 | #include <stdlib.h> | 65 | #include <stdlib.h> |
65 | 66 | ||
66 | DateBook::DateBook( QWidget *parent, const char *, WFlags f ) | 67 | DateBook::DateBook( QWidget *parent, const char *, WFlags f ) |
67 | : QMainWindow( parent, "datebook", f ), | 68 | : QMainWindow( parent, "datebook", f ), |
68 | aPreset( FALSE ), | 69 | aPreset( FALSE ), |
69 | presetTime( -1 ), | 70 | presetTime( -1 ), |
70 | startTime( 8 ), // an acceptable default | 71 | startTime( 8 ), // an acceptable default |
71 | rowStyle( 0 ), | 72 | rowStyle( 0 ), |
72 | bJumpToCurTime(FALSE), | 73 | bJumpToCurTime(FALSE), |
73 | syncing(FALSE), | 74 | syncing(FALSE), |
74 | inSearch(FALSE), | 75 | inSearch(FALSE), |
75 | alarmCounter(0) | 76 | alarmCounter(0) |
76 | { | 77 | { |
77 | bool needEvilHack= false; // if we need an Evil Hack | 78 | bool needEvilHack= false; // if we need an Evil Hack |
78 | QTime t; | 79 | QTime t; |
79 | t.start(); | 80 | t.start(); |
80 | db = new DateBookDBHoliday; | 81 | db = new DateBookDBHoliday; |
81 | odebug << "loading db t=" << t.elapsed() << oendl; | 82 | odebug << "loading db t=" << t.elapsed() << oendl; |