contactengine/mainwindow.cpp
author Sebastian Brannstrom <sebastianb@symbian.org>
Wed, 11 Aug 2010 20:03:29 +0100
changeset 24 2e833c2a6782
parent 23 51fcdd1558d8
child 25 adbe71832e2b
permissions -rwxr-xr-x
Added csv file to sis exports; improved csv file location in main.cpp

#include <QComboBox>

#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);
  //  this->ce->enumerateMgrs();
    this->ce->setManager(QString("memory"));

    connect(ui->comboBox, SIGNAL( activated ( const QString &  )),
            this->ce, SLOT(setManager(const QString &) ));

    ui->comboBox->addItems(this->ce->dataSources());
    this->ce->populateAddresses();
 //   this->ce->enumerateMgrs();
  //  this->ce->dumpContactMgr();
    ui->listView->setModel(this->ce);
}



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