eapol/eapol_framework/eapol_symbian/am/include/eaptlspeap_db_api_inc/EapFastPacStore.inl
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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:  WAPI authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: %
       
    20 */
       
    21 
       
    22 #include "EapTraceSymbian.h"
       
    23 
       
    24 inline CEapFastPacStore* CEapFastPacStore::NewL()
       
    25 {
       
    26     EAP_TRACE_DEBUG_SYMBIAN((_L("CEapFastPacStore::NewL(): start")));
       
    27 
       
    28     // This call finds and loads the correct DLL and after that calls the
       
    29     // entry function in the interface implementation in the DLL.
       
    30     TAny* ptr = 0;
       
    31 
       
    32     const TUid KimplementationUid = { 0x2002BC93 };
       
    33 
       
    34     TRAPD( err, ptr = REComSession::CreateImplementationL(
       
    35             KimplementationUid,
       
    36             _FOFF(CEapFastPacStore, iDtor_ID_Key)));
       
    37 
       
    38     EAP_TRACE_DEBUG_SYMBIAN((_L("CEapFastPacStore::NewL(): CreateImplementationL(Uid=0x%08x), err=%d, returns ptr=0x%08x\n"),
       
    39         KimplementationUid.iUid,
       
    40         err,
       
    41         ptr));
       
    42 
       
    43 
       
    44     User::LeaveIfError(err);
       
    45 
       
    46     return reinterpret_cast<CEapFastPacStore *>(ptr);
       
    47 }
       
    48 
       
    49 // end