46 |
46 |
47 HbMainWindow mainWindow; |
47 HbMainWindow mainWindow; |
48 CntKeyGrabber *keyGrabber = new CntKeyGrabber(&mainWindow, &mainWindow); |
48 CntKeyGrabber *keyGrabber = new CntKeyGrabber(&mainWindow, &mainWindow); |
49 |
49 |
50 CntViewNavigator* navigator = new CntViewNavigator( &mainWindow ); |
50 CntViewNavigator* navigator = new CntViewNavigator( &mainWindow ); |
51 navigator->addException( serviceEditView, noView ); |
|
52 navigator->addEffect( serviceContactCardView, historyView ); |
51 navigator->addEffect( serviceContactCardView, historyView ); |
53 navigator->addEffect( historyView, serviceContactCardView ); |
52 navigator->addEffect( historyView, serviceContactCardView ); |
|
53 navigator->addEffect( serviceGroupMemberView, groupActionsView ); |
|
54 navigator->addEffect( groupActionsView, serviceGroupMemberView ); |
|
55 navigator->addRoot( serviceGroupMemberView ); |
54 |
56 |
55 // This object actually executes the services |
57 // This object actually executes the services |
56 CntServices* services = new CntServices(); |
58 CntServices* services = new CntServices(); |
57 services->setParent( &mainWindow ); // for ownership |
59 services->setParent( &mainWindow ); // for ownership |
58 |
60 |
59 CntServiceViewManager* viewManager = new CntServiceViewManager( |
61 CntServiceViewManager* viewManager = new CntServiceViewManager( |
60 &mainWindow, |
62 &mainWindow, |
61 *services ); // as CntAbstractServiceProvider |
63 *services ); // as CntAbstractServiceProvider |
62 viewManager->setViewNavigator( navigator ); |
64 viewManager->setViewNavigator( navigator ); |
63 |
65 |
64 services->setViewManager( *viewManager ); |
66 //services->setViewManager( *viewManager ); |
|
67 services->setEngine( viewManager->engine() ); |
65 |
68 |
66 // These objects talk with QT Highway (send/receive) |
69 // These objects talk with QT Highway (send/receive) |
67 CntServiceProviderOld* serviceProviderOld = new CntServiceProviderOld( *services, &mainWindow ); // com.nokia.services.phonebookservices.Fetch |
70 CntServiceProviderOld* serviceProviderOld = new CntServiceProviderOld( *services, &mainWindow ); // com.nokia.services.phonebookservices.Fetch |
68 CntServiceProviderOld2* serviceProviderOld2 = new CntServiceProviderOld2( *services, &mainWindow ); // phonebookservices.Fetch |
71 CntServiceProviderOld2* serviceProviderOld2 = new CntServiceProviderOld2( *services, &mainWindow ); // phonebookservices.Fetch |
69 CntServiceProviderFetch* serviceProviderFetch = new CntServiceProviderFetch( *services, &mainWindow ); // phonebookservices.com.nokia.symbian.IContactFetch |
72 CntServiceProviderFetch* serviceProviderFetch = new CntServiceProviderFetch( *services, &mainWindow ); // phonebookservices.com.nokia.symbian.IContactFetch |