Another failed attempt to make kinetic scrolling work. Simplified
[dorian] / dorian.pro
index 72a6be6..7c4f1eb 100644 (file)
@@ -1,4 +1,4 @@
-QT += webkit xml
+QT += webkit xml sql network
 
 INCLUDEPATH += $$PWD \
     $$PWD/model \
@@ -30,7 +30,16 @@ SOURCES += \
     model/bookfinder.cpp \
     widgets/listwindow.cpp \
     widgets/progress.cpp \
-    widgets/adopterwindow.cpp
+    widgets/adopterwindow.cpp \
+    platform.cpp \
+    model/bookdb.cpp \
+    searchdialog.cpp \
+    search.cpp \
+    widgets/flickable.cpp \
+    widgets/listview.cpp \
+    searchresultsdialog.cpp \
+    searchresultinfodialog.cpp \
+    widgets/progressdialog.cpp
 
 HEADERS += \
     mainwindow.h \
@@ -63,7 +72,15 @@ HEADERS += \
     widgets/progress.h \
     widgets/adopterwindow.h \
     widgets/listview.h \
-    model/xmlhandler.h
+    model/xmlhandler.h \
+    platform.h \
+    model/bookdb.h \
+    searchdialog.h \
+    search.h \
+    widgets/flickable.h \
+    searchresultsdialog.h \
+    searchresultinfodialog.h \
+    widgets/progressdialog.h
 
 RESOURCES += \
     dorian.qrc
@@ -93,10 +110,12 @@ OTHER_FILES += \
     pkg/symbian/book.svg
 
 DEFINES += \
-    USE_FILE32API \
-    DORIAN_TEST_MODEL
+    USE_FILE32API
 
-include(model/modeltest/modeltest.pri)
+!symbian {
+    DEFINES += DORIAN_TEST_MODEL
+    include(model/modeltest/modeltest.pri)
+}
 
 unix {
     symbian {
@@ -104,19 +123,31 @@ unix {
         LIBS += -lz
     }
 }
+
 win32 {
     DEFINES += ZLIB_WINAPI
     INCLUDEPATH += $$PWD/model/zlib
     LIBS += pkg/win32/zlibstat.lib
 }
+
 symbian {
-    ICON = $$PWD/pkg/symbian/book.svgt
+    TARGET = Dorian
     TARGET.UID3 = 0xEA633557
-    # TARGET.CAPABILITY = ...
-    # FIXME: Add OpenC ZLIB?
-    INCLUDEPATH += C:/NokiaQtSDK/Symbian/SDK/src/3rdparty/zlib \
-        c:/Qt/4.7.0/src/3rdparty/zlib
+    TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
+    TARGET.EPOCHEAPSIZE = 0x080000 0x4000000
+    ICON = $$PWD/pkg/symbian/book.svg
+    packageheader = "$${LITERAL_HASH}{\"Dorian\"}, (0xEA633557), 0, 3, 4"
+    vendorinfo = \
+        "%{\"Nokia Betalabs \"}" \
+        ":\"Nokia Betalabs \""
+    my_deployment.pkg_prerules = packageheader vendorinfo
+    DEPLOYMENT += my_deployment
+
+    INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib
+    HEADERS += widgets/flickcharm.h
+    SOURCES += widgets/flickcharm.cpp
 }
+
 maemo5 {
     QT += maemo5 dbus
     isEmpty(PREFIX) {
@@ -141,6 +172,3 @@ maemo5 {
     iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon
     iconscalable.files += pkg/maemo/icon-scalable/dorian.png
 }
-macx {
-    CONFIG += x86
-}