emailcontacts/remotecontactlookup/engine/src/cpbkxrclprotocolenvimpl.cpp
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007 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:  Implementation of the class CPbkxRclProtocolEnvImpl.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "cpbkxrclprotocolenvimpl.h"
       
    21 #include "cpbkxrclprotocolresultimpl.h"
       
    22 #include "cpbkxrclprotocolaccountimpl.h"
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // CPbkxRclProtocolEnvImpl::NewL
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CPbkxRclProtocolEnvImpl* CPbkxRclProtocolEnvImpl::NewL()
       
    31     {
       
    32     FUNC_LOG;
       
    33     CPbkxRclProtocolEnvImpl* env = CPbkxRclProtocolEnvImpl::NewLC();
       
    34     CleanupStack::Pop( env );
       
    35     return env;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CPbkxRclProtocolEnvImpl::NewLC
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CPbkxRclProtocolEnvImpl* CPbkxRclProtocolEnvImpl::NewLC()
       
    43     {
       
    44     FUNC_LOG;
       
    45     CPbkxRclProtocolEnvImpl* env = new ( ELeave ) CPbkxRclProtocolEnvImpl();
       
    46     CleanupStack::PushL( env );
       
    47     env->ConstructL();
       
    48     return env;
       
    49     }
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // CPbkxRclProtocolEnvImpl::CPbkxRclProtocolEnvImpl
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 CPbkxRclProtocolEnvImpl::CPbkxRclProtocolEnvImpl() : CBase()
       
    56     {
       
    57     FUNC_LOG;
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // CPbkxRclProtocolEnvImpl::~CPbkxRclProtocolEnvImpl
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 CPbkxRclProtocolEnvImpl::~CPbkxRclProtocolEnvImpl()
       
    65     {
       
    66     FUNC_LOG;
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // CPbkxRclProtocolEnvImpl::ConstructL
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 void CPbkxRclProtocolEnvImpl::ConstructL()
       
    74     {
       
    75     FUNC_LOG;
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------------------------
       
    79 // CPbkxRclProtocolEnvImpl::NewProtocolAccountL
       
    80 // ---------------------------------------------------------------------------
       
    81 //
       
    82 CPbkxRemoteContactLookupProtocolAccount* CPbkxRclProtocolEnvImpl::NewProtocolAccountL(
       
    83     TPbkxRemoteContactLookupProtocolAccountId aId,
       
    84     const TDesC& aName )
       
    85     {
       
    86     FUNC_LOG;
       
    87     CPbkxRclProtocolAccountImpl* account = CPbkxRclProtocolAccountImpl::NewL( aId, aName );
       
    88     return account;
       
    89     }
       
    90 
       
    91 // ---------------------------------------------------------------------------
       
    92 // CPbkxRclProtocolEnvImpl::NewProtocolResultL
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 CPbkxRemoteContactLookupProtocolResult* CPbkxRclProtocolEnvImpl::NewProtocolResultL(
       
    96     TBool aIsComplete,
       
    97     CContactItem& aContactItem,
       
    98     const TDesC& aExtraProtocolData )
       
    99     {
       
   100     FUNC_LOG;
       
   101     CPbkxRclProtocolResultImpl* result = CPbkxRclProtocolResultImpl::NewL(
       
   102         aIsComplete,
       
   103         aContactItem,
       
   104         aExtraProtocolData );
       
   105     return result;
       
   106     }
       
   107