summaryrefslogtreecommitdiff
path: root/libopie2/opiepim
Unidiff
Diffstat (limited to 'libopie2/opiepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/opiepim.pro3
-rw-r--r--libopie2/opiepim/stable_pch.h53
-rw-r--r--libopie2/opiepim/ui/opimmainwindow.cpp1
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
@@ -1,23 +1,26 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on 2CONFIG += qt warn_on
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4 4
5INTERFACES = 5INTERFACES =
6TARGET = opiepim2 6TARGET = opiepim2
7VERSION = 1.8.6 7VERSION = 1.8.6
8INCLUDEPATH += $(OPIEDIR)/include 8INCLUDEPATH += $(OPIEDIR)/include
9DEPENDPATH += $(OPIEDIR)/include 9DEPENDPATH += $(OPIEDIR)/include
10LIBS += -lopiecore2 10LIBS += -lopiecore2
11 11
12include ( $(OPIEDIR)/gen.pro ) 12include ( $(OPIEDIR)/gen.pro )
13include ( core/core.pro ) 13include ( core/core.pro )
14include ( backend/backends.pro ) 14include ( backend/backends.pro )
15include ( ui/ui.pro ) 15include ( ui/ui.pro )
16include ( private/private.pro )
17
18PRECOMPILED_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
21contains( platform, x11 ) { 24contains( 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
@@ -110,33 +110,32 @@ void OPimMainWindow::appMessage( const QCString& cmd, const QByteArray& array )
110 stream >> uid; 110 stream >> uid;
111 edit( uid ); 111 edit( uid );
112 }else if ( cmd == "add(int,QByteArray)" ) { 112 }else if ( cmd == "add(int,QByteArray)" ) {
113 int rtti; 113 int rtti;
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 */
138void OPimMainWindow::setDocument( const QString& str) { 137void OPimMainWindow::setDocument( const QString& str) {
139 doSetDocument( str ); 138 doSetDocument( str );
140} 139}
141/* 140/*
142 * we now try to get the array demarshalled 141 * we now try to get the array demarshalled