emailcontacts/contactactionservice/src/TFscAddressSelectParams.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 15:57:15 +0300
branchRCL_3
changeset 24 b5fbb9b25d57
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of address selection parameters.
*
*/


#include "emailtrace.h"
#include "TFscAddressSelectParams.h"

// Phonebook 2
#include <MPbk2ContactNameFormatter.h>
#include "CFscFieldPropertyArray.h"

// Virtual Phonebook
#include <MVPbkStoreContactField.h>
#include <MVPbkStoreContact.h>
#include <CVPbkFieldTypeSelector.h>
#include <MVPbkStoreContactFieldCollection.h>
#include <CVPbkContactManager.h>


// --------------------------------------------------------------------------
// TFscAddressSelectParams::TFscAddressSelectParams
// --------------------------------------------------------------------------
//
 TFscAddressSelectParams::TFscAddressSelectParams
        ( MVPbkStoreContact& aContact,
          const CVPbkContactManager& aContactManager,
          MPbk2ContactNameFormatter& aNameFormatter,
          const CFscFieldPropertyArray& aFieldPropertyArray,
          TResourceReader& aReader, TInt aTitleResId ) :
            iContact( aContact ),
            iContactManager( aContactManager ),
            iNameFormatter( aNameFormatter ),
            iFieldPropertyArray( aFieldPropertyArray ),
            iResReader( aReader ),
            iTitleResId( aTitleResId ),
            iFocusedField( NULL ),
            iDefaultPriorities( NULL ),
            iUseDefaultDirectly( EFalse ),
            iIncludeContactNameInPrompt( ETrue ),
            iSuppressWarnings( EFalse )
    {
    FUNC_LOG;
    }

// --------------------------------------------------------------------------
// TFscAddressSelectParams::SetFocusedField
// --------------------------------------------------------------------------
//
 void TFscAddressSelectParams::SetFocusedField
        ( const MVPbkStoreContactField* aFocusedField )
    {
    FUNC_LOG;
    iFocusedField = aFocusedField;
    }

// --------------------------------------------------------------------------
// TFscAddressSelectParams::SetDefaultPriorities
// --------------------------------------------------------------------------
//
 void TFscAddressSelectParams::SetDefaultPriorities
        ( const RVPbkContactFieldDefaultPriorities& aDefaultPriorities )
    {
    FUNC_LOG;
    iDefaultPriorities = &aDefaultPriorities;
    }
 
// --------------------------------------------------------------------------
// TPbk2AddressSelectParams::SetUseDefaultDirectly
// --------------------------------------------------------------------------
//
void TFscAddressSelectParams::SetUseDefaultDirectly
         ( TBool aUseDefaultDirectly )
     {
    FUNC_LOG;
     iUseDefaultDirectly = aUseDefaultDirectly;
     }

// End of File