phonebookui/phonebookservices/src/cntserviceviewfactory.cpp
changeset 37 fd64c38c277d
parent 27 de1630741fbe
child 50 77bc263e1626
child 59 a642906a277a
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
    19 #include "cntabstractview.h"
    19 #include "cntabstractview.h"
    20 #include "cntserviceeditview.h"
    20 #include "cntserviceeditview.h"
    21 #include "cntservicesubeditview.h"
    21 #include "cntservicesubeditview.h"
    22 #include "cntservicecontactfetchview.h"
    22 #include "cntservicecontactfetchview.h"
    23 #include "cntservicecontactselectionview.h"
    23 #include "cntservicecontactselectionview.h"
       
    24 #include "cntservicecontactcardview.h"
       
    25 #include "cntserviceassigncontactcardview.h"
    24 
    26 
    25 CntServiceViewFactory::CntServiceViewFactory(CntServiceHandler* aHandler) : 
    27 CntServiceViewFactory::CntServiceViewFactory(CntServiceHandler* aHandler) : 
    26 CntDefaultViewFactory(),
    28 CntDefaultViewFactory(),
    27 mService( aHandler )
    29 mService( aHandler )
    28 {
    30 {
    49         
    51         
    50     case serviceSubEditView:
    52     case serviceSubEditView:
    51         return new CntServiceSubEditView( mService );
    53         return new CntServiceSubEditView( mService );
    52     
    54     
    53     case serviceContactCardView:
    55     case serviceContactCardView:
    54         return new CntServiceEditView( mService );
    56         return new CntServiceContactCardView( mService );
    55             
    57             
    56     case serviceAssignContactCardView:
    58     case serviceAssignContactCardView:
    57         return new CntServiceSubEditView( mService );
    59         return new CntServiceAssignContactCardView( mService );
    58         
    60         
    59     default:
    61     default:
    60         return CntDefaultViewFactory::createView( aViewId );
    62         return CntDefaultViewFactory::createView( aViewId );
    61     }
    63     }
    62 }
    64 }