-rw-r--r-- | libopie2/opiepim/opiepim.pro | 3 | ||||
-rw-r--r-- | libopie2/opiepim/stable_pch.h | 53 | ||||
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 1 |
3 files changed, 56 insertions, 1 deletions
diff --git a/libopie2/opiepim/opiepim.pro b/libopie2/opiepim/opiepim.pro index af8e63d..992fb8b 100644 --- a/libopie2/opiepim/opiepim.pro +++ b/libopie2/opiepim/opiepim.pro | |||
@@ -4,20 +4,23 @@ DESTDIR = $(OPIEDIR)/lib | |||
4 | 4 | ||
5 | INTERFACES = | 5 | INTERFACES = |
6 | TARGET = opiepim2 | 6 | TARGET = opiepim2 |
7 | VERSION = 1.8.6 | 7 | VERSION = 1.8.6 |
8 | INCLUDEPATH += $(OPIEDIR)/include | 8 | INCLUDEPATH += $(OPIEDIR)/include |
9 | DEPENDPATH += $(OPIEDIR)/include | 9 | DEPENDPATH += $(OPIEDIR)/include |
10 | LIBS += -lopiecore2 | 10 | LIBS += -lopiecore2 |
11 | 11 | ||
12 | include ( $(OPIEDIR)/gen.pro ) | 12 | include ( $(OPIEDIR)/gen.pro ) |
13 | include ( core/core.pro ) | 13 | include ( core/core.pro ) |
14 | include ( backend/backends.pro ) | 14 | include ( backend/backends.pro ) |
15 | include ( ui/ui.pro ) | 15 | include ( ui/ui.pro ) |
16 | include ( private/private.pro ) | ||
17 | |||
18 | PRECOMPILED_HEADER = stable_pch.h | ||
16 | 19 | ||
17 | !contains( platform, x11 ) { | 20 | !contains( platform, x11 ) { |
18 | include ( $(OPIEDIR)/include.pro ) | 21 | include ( $(OPIEDIR)/include.pro ) |
19 | } | 22 | } |
20 | 23 | ||
21 | contains( platform, x11 ) { | 24 | contains( platform, x11 ) { |
22 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | 25 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib |
23 | } | 26 | } |
diff --git a/libopie2/opiepim/stable_pch.h b/libopie2/opiepim/stable_pch.h new file mode 100644 index 0000000..ea4d0d1 --- a/dev/null +++ b/libopie2/opiepim/stable_pch.h | |||
@@ -0,0 +1,53 @@ | |||
1 | #if defined __cplusplus | ||
2 | |||
3 | #include "core/ocontactaccess.h" | ||
4 | #include "core/odatebookaccess.h" | ||
5 | #include "core/opimaccessfactory.h" | ||
6 | #include "core/opimaccesstemplate.h" | ||
7 | #include "core/opimcache.h" | ||
8 | #include "core/opimcontactfields.h" | ||
9 | #include "core/opimcontact.h" | ||
10 | #include "core/opimdateconversion.h" | ||
11 | #include "core/opimevent.h" | ||
12 | #include "core/opimglobal.h" | ||
13 | #include "core/opimmaintainer.h" | ||
14 | #include "core/opimnotify.h" | ||
15 | #include "core/opimnotifymanager.h" | ||
16 | #include "core/opimoccurrence.h" | ||
17 | #include "core/opimrecord.h" | ||
18 | #include "core/opimrecordlist.h" | ||
19 | #include "core/opimrecurrence.h" | ||
20 | #include "core/opimresolver.h" | ||
21 | #include "core/opimstate.h" | ||
22 | #include "core/opimtemplatebase.h" | ||
23 | #include "core/opimtimezone.h" | ||
24 | #include "core/opimtodo.h" | ||
25 | #include "core/opimxref.h" | ||
26 | #include "core/opimxrefmanager.h" | ||
27 | #include "core/opimxrefpartner.h" | ||
28 | #include "core/otodoaccess.h" | ||
29 | #include "backend/obackendfactory.h" | ||
30 | #include "backend/ocontactaccessbackend.h" | ||
31 | #include "backend/ocontactaccessbackend_vcard.h" | ||
32 | #include "backend/ocontactaccessbackend_xml.h" | ||
33 | #include "backend/odatebookaccessbackend.h" | ||
34 | #include "backend/odatebookaccessbackend_xml.h" | ||
35 | #include "backend/opimaccessbackend.h" | ||
36 | #include "backend/opimbackendoccurrence.h" | ||
37 | #include "backend/otodoaccessbackend.h" | ||
38 | #include "backend/otodoaccessvcal.h" | ||
39 | #include "backend/otodoaccessxml.h" | ||
40 | #include "backend/otodoaccesssql.h" | ||
41 | #include "backend/ocontactaccessbackend_sql.h" | ||
42 | #include "backend/odatebookaccessbackend_sql.h" | ||
43 | #include "ui/opimmainwindow.h" | ||
44 | #include "ui/opimrecurrencewidget.h" | ||
45 | #include "ui/todayconfigwidget.h" | ||
46 | #include "ui/todayplugininterface.h" | ||
47 | #include "private/vobject_p.h" | ||
48 | #include "private/opimoccurrence_p.h" | ||
49 | #include "private/opimsortvector.h" | ||
50 | #include "private/opimtodosortvector.h" | ||
51 | |||
52 | |||
53 | #endif | ||
diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index 8ce2062..058a428 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp | |||
@@ -114,25 +114,24 @@ void OPimMainWindow::appMessage( const QCString& cmd, const QByteArray& array ) | |||
114 | QByteArray array; | 114 | QByteArray array; |
115 | stream >> rtti; | 115 | stream >> rtti; |
116 | stream >> array; | 116 | stream >> array; |
117 | m_fallBack = record(rtti, array ); | 117 | m_fallBack = record(rtti, array ); |
118 | if (!m_fallBack) return; | 118 | if (!m_fallBack) return; |
119 | add( *m_fallBack ); | 119 | add( *m_fallBack ); |
120 | delete m_fallBack; | 120 | delete m_fallBack; |
121 | }else if ( cmd == "alarm(QDateTime,int)" ) { | 121 | }else if ( cmd == "alarm(QDateTime,int)" ) { |
122 | raise(); | 122 | raise(); |
123 | QDateTime dt; int uid; | 123 | QDateTime dt; int uid; |
124 | stream >> dt; | 124 | stream >> dt; |
125 | stream >> uid; | 125 | stream >> uid; |
126 | owarn << " Date: " << dt.toString() << " Uid: " << uid << "" << oendl; | ||
127 | QDateTime current = QDateTime::currentDateTime(); | 126 | QDateTime current = QDateTime::currentDateTime(); |
128 | if ( current.time().hour() != dt.time().hour() && current.time().minute() != dt.time().minute() ) | 127 | if ( current.time().hour() != dt.time().hour() && current.time().minute() != dt.time().minute() ) |
129 | return; | 128 | return; |
130 | doAlarm( dt, uid ); | 129 | doAlarm( dt, uid ); |
131 | needShow = true; | 130 | needShow = true; |
132 | } | 131 | } |
133 | 132 | ||
134 | if (needShow ) | 133 | if (needShow ) |
135 | QPEApplication::setKeepRunning(); | 134 | QPEApplication::setKeepRunning(); |
136 | } | 135 | } |
137 | /* implement the url scripting here */ | 136 | /* implement the url scripting here */ |
138 | void OPimMainWindow::setDocument( const QString& str) { | 137 | void OPimMainWindow::setDocument( const QString& str) { |