summaryrefslogtreecommitdiff
path: root/libopie2/opiepim
Side-by-side diff
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 @@
TEMPLATE = lib
CONFIG += qt warn_on
DESTDIR = $(OPIEDIR)/lib
INTERFACES =
TARGET = opiepim2
VERSION = 1.8.6
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
LIBS += -lopiecore2
include ( $(OPIEDIR)/gen.pro )
include ( core/core.pro )
include ( backend/backends.pro )
include ( ui/ui.pro )
+include ( private/private.pro )
+
+PRECOMPILED_HEADER = stable_pch.h
!contains( platform, x11 ) {
include ( $(OPIEDIR)/include.pro )
}
contains( platform, x11 ) {
LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
}
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 @@
+#if defined __cplusplus
+
+#include "core/ocontactaccess.h"
+#include "core/odatebookaccess.h"
+#include "core/opimaccessfactory.h"
+#include "core/opimaccesstemplate.h"
+#include "core/opimcache.h"
+#include "core/opimcontactfields.h"
+#include "core/opimcontact.h"
+#include "core/opimdateconversion.h"
+#include "core/opimevent.h"
+#include "core/opimglobal.h"
+#include "core/opimmaintainer.h"
+#include "core/opimnotify.h"
+#include "core/opimnotifymanager.h"
+#include "core/opimoccurrence.h"
+#include "core/opimrecord.h"
+#include "core/opimrecordlist.h"
+#include "core/opimrecurrence.h"
+#include "core/opimresolver.h"
+#include "core/opimstate.h"
+#include "core/opimtemplatebase.h"
+#include "core/opimtimezone.h"
+#include "core/opimtodo.h"
+#include "core/opimxref.h"
+#include "core/opimxrefmanager.h"
+#include "core/opimxrefpartner.h"
+#include "core/otodoaccess.h"
+#include "backend/obackendfactory.h"
+#include "backend/ocontactaccessbackend.h"
+#include "backend/ocontactaccessbackend_vcard.h"
+#include "backend/ocontactaccessbackend_xml.h"
+#include "backend/odatebookaccessbackend.h"
+#include "backend/odatebookaccessbackend_xml.h"
+#include "backend/opimaccessbackend.h"
+#include "backend/opimbackendoccurrence.h"
+#include "backend/otodoaccessbackend.h"
+#include "backend/otodoaccessvcal.h"
+#include "backend/otodoaccessxml.h"
+#include "backend/otodoaccesssql.h"
+#include "backend/ocontactaccessbackend_sql.h"
+#include "backend/odatebookaccessbackend_sql.h"
+#include "ui/opimmainwindow.h"
+#include "ui/opimrecurrencewidget.h"
+#include "ui/todayconfigwidget.h"
+#include "ui/todayplugininterface.h"
+#include "private/vobject_p.h"
+#include "private/opimoccurrence_p.h"
+#include "private/opimsortvector.h"
+#include "private/opimtodosortvector.h"
+
+
+#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 )
stream >> uid;
edit( uid );
}else if ( cmd == "add(int,QByteArray)" ) {
int rtti;
QByteArray array;
stream >> rtti;
stream >> array;
m_fallBack = record(rtti, array );
if (!m_fallBack) return;
add( *m_fallBack );
delete m_fallBack;
}else if ( cmd == "alarm(QDateTime,int)" ) {
raise();
QDateTime dt; int uid;
stream >> dt;
stream >> uid;
- owarn << " Date: " << dt.toString() << " Uid: " << uid << "" << oendl;
QDateTime current = QDateTime::currentDateTime();
if ( current.time().hour() != dt.time().hour() && current.time().minute() != dt.time().minute() )
return;
doAlarm( dt, uid );
needShow = true;
}
if (needShow )
QPEApplication::setKeepRunning();
}
/* implement the url scripting here */
void OPimMainWindow::setDocument( const QString& str) {
doSetDocument( str );
}
/*
* we now try to get the array demarshalled