--- a/contactengine/main.cpp Tue Aug 10 14:05:55 2010 -0700
+++ b/contactengine/main.cpp Wed Aug 11 20:03:29 2010 +0100
@@ -1,6 +1,9 @@
#include <QtGui/QApplication>
+#include <QDesktopServices>
+#include <QDir>
#include "mainwindow.h"
#include "dbtools.h"
+#include <QDebug>
int main(int argc, char *argv[])
{
@@ -8,7 +11,18 @@
MainWindow w;
DBTools dbt;
- dbt.importCSV("c:\\contacts.csv");
+ QString dbLocation;
+
+#ifdef Q_OS_SYMBIAN
+ dbLocation = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
+ dbLocation.append(QDir::separator());
+ dbLocation.append("contacts.csv");
+
+#else
+ dbLocation = "C:\\workspace\\QtExamples\\contactengine\\contacts.csv";
+#endif
+ qDebug() << "dbLocation=" << dbLocation << endl;
+ dbt.importCSV(dbLocation);
#if defined(Q_WS_S60)
w.showMaximized();