phonebookui/phonebookservices/src/main.cpp
changeset 53 e6aff7b69165
parent 50 77bc263e1626
child 54 47627ab5d7a4
--- a/phonebookui/phonebookservices/src/main.cpp	Wed Jul 21 11:37:51 2010 +0300
+++ b/phonebookui/phonebookservices/src/main.cpp	Fri Jul 23 12:43:48 2010 +0300
@@ -16,9 +16,9 @@
 */
 
 #include <hbapplication.h>
+#include <hbmainwindow.h>
 #include <QTranslator>
 #include <QLocale>
-#include "cntmainwindow.h"
 #include "cntserviceproviderold.h"
 #include "cntserviceproviderold2.h"
 #include "cntserviceproviderfetch.h"
@@ -28,10 +28,13 @@
 #include "cntservices.h"
 #include "cntserviceviewmanager.h"
 #include "cntviewnavigator.h"
+#include "cntdebug.h"
 #include <cntviewparams.h>
 
 int main(int argc, char **argv)
 {
+    qInstallMsgHandler(MSG_HANDLER);
+    
     HbApplication a( argc, argv );
 
     QTranslator translator;
@@ -40,10 +43,12 @@
     translator.load(path + "contacts_" + lang);
     a.installTranslator(&translator);
 
-    CntMainWindow mainWindow(NULL, noView); // no parent & "noView" as default view
+    HbMainWindow mainWindow;
 
     CntViewNavigator* navigator = new CntViewNavigator( &mainWindow );
     navigator->addException( serviceEditView, noView );
+    navigator->addEffect( serviceContactCardView, historyView );
+    navigator->addEffect( historyView, serviceContactCardView );
 
     // This object actually executes the services
     CntServices* services = new CntServices();