contactengine/main.cpp
author John Kern <johnk@symbian.org>
Thu, 12 Aug 2010 18:48:24 -0700
changeset 27 afa910b5ae81
parent 24 2e833c2a6782
child 33 f6cf541961ad
permissions -rwxr-xr-x
ok I did say to use QDesktopServices but treating contacts.csv is simpler

#include <QtGui/QApplication>
#include <QDesktopServices>
#include <QDir>
#include "mainwindow.h"
#include "dbtools.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;

    DBTools dbt;
    QString dbLocation(":/contacts.csv");

    qDebug() << "dbLocation=" << dbLocation << endl;
    dbt.importCSV(dbLocation);

#if defined(Q_WS_S60)
    w.showMaximized();
#else
    w.show();
#endif

    return a.exec();
}