contactengine/mainwindow.cpp
author Sebastian Brannstrom <sebastianb@symbian.org>
Mon, 09 Aug 2010 17:16:20 +0100
changeset 21 3bfc3227045d
parent 19 e4b6ee329501
child 23 51fcdd1558d8
permissions -rwxr-xr-x
CSV reader works, kind of. contacts.csv file added to project, must live in c:\ at the moment

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "contactsengine.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->ce = new ContactsEngine(this);

    ui->comboBox->addItems(this->ce->dataSources());

}

void MainWindow::backendSelected(QString txt)
{
    // based on this string create a contact manager.
    this->ce->setManager(txt);
}

MainWindow::~MainWindow()
{
    delete ui;
}