contactengine/mainwindow.cpp
changeset 19 e4b6ee329501
child 23 51fcdd1558d8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contactengine/mainwindow.cpp	Thu Aug 05 16:40:47 2010 -0700
@@ -0,0 +1,25 @@
+#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;
+}