contactengine/mainwindow.cpp
changeset 19 e4b6ee329501
child 23 51fcdd1558d8
equal deleted inserted replaced
18:5707b75503d5 19:e4b6ee329501
       
     1 #include "mainwindow.h"
       
     2 #include "ui_mainwindow.h"
       
     3 #include "contactsengine.h"
       
     4 
       
     5 MainWindow::MainWindow(QWidget *parent) :
       
     6     QMainWindow(parent),
       
     7     ui(new Ui::MainWindow)
       
     8 {
       
     9     ui->setupUi(this);
       
    10     this->ce = new ContactsEngine(this);
       
    11 
       
    12     ui->comboBox->addItems(this->ce->dataSources());
       
    13 
       
    14 }
       
    15 
       
    16 void MainWindow::backendSelected(QString txt)
       
    17 {
       
    18     // based on this string create a contact manager.
       
    19     this->ce->setManager(txt);
       
    20 }
       
    21 
       
    22 MainWindow::~MainWindow()
       
    23 {
       
    24     delete ui;
       
    25 }