phonebookui/phonebookservices/src/main.cpp
changeset 65 ae724a111993
parent 59 a642906a277a
child 71 7cc7d74059f9
equal deleted inserted replaced
59:a642906a277a 65:ae724a111993
    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