phonebookui/Phonebook2/xSPExtensionManager/src/CxSPBaseView.cpp
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *       xSP extension base view.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "CxSPBaseView.h"
       
    23 
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 EXPORT_C CxSPBaseView::CxSPBaseView( MxSPViewMapper& aMapper,
       
    28                                      MxSPContactManager& aContactManager,
       
    29                                      CPbk2UIExtensionView& aView ) :
       
    30                                      iMapper( aMapper ),
       
    31                                      iContactManager( aContactManager ),
       
    32                                      iView( aView )
       
    33     {
       
    34     }
       
    35 
       
    36 EXPORT_C void CxSPBaseView::ViewBaseConstructL( TUint32 aId, TInt aOldId )
       
    37     {
       
    38     TInt err = iMapper.GetNewView( aId, aOldId, iId );
       
    39     User::LeaveIfError( err );
       
    40     }
       
    41 
       
    42 EXPORT_C void CxSPBaseView::DoActivateL( const TVwsViewId& aPrevViewId,
       
    43                                          TUid aCustomMessageId,
       
    44                                          const TDesC8& aCustomMessage )
       
    45     {
       
    46     iContactManager.ViewActivatedL( aPrevViewId, aCustomMessageId, aCustomMessage );
       
    47     DoActivateViewL( aPrevViewId, aCustomMessageId, aCustomMessage );
       
    48     }
       
    49 
       
    50 // End of File