inc/pacstore_inc/EapFastPacStore.inl
changeset 49 43351a4f2da3
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
       
     1 /*
       
     2  * Copyright (c) 2010 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:  EAP-FAST PAC-store IF inlines
       
    15  *
       
    16  */
       
    17 
       
    18 /*
       
    19  * %version: 6 %
       
    20  */
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <EapTraceSymbian.h>
       
    24 
       
    25 inline CEapFastPacStore* CEapFastPacStore::NewL()
       
    26 {
       
    27     EAP_TRACE_DEBUG_SYMBIAN((_L("CEapFastPacStore::NewL(): start")));
       
    28 
       
    29     // This call finds and loads the correct DLL and after that calls the
       
    30     // entry function in the interface implementation in the DLL.
       
    31     TAny* ptr = 0;
       
    32 
       
    33     const TUid KimplementationUid = { 0x2002BC93 };
       
    34 
       
    35     TRAPD( err, ptr = REComSession::CreateImplementationL(
       
    36             KimplementationUid,
       
    37             _FOFF(CEapFastPacStore, iDtor_ID_Key)));
       
    38 
       
    39     EAP_TRACE_DEBUG_SYMBIAN((_L("CEapFastPacStore::NewL(): CreateImplementationL(Uid=0x%08x), err=%d, returns ptr=0x%08x\n"),
       
    40         KimplementationUid.iUid,
       
    41         err,
       
    42         ptr));
       
    43 
       
    44 
       
    45     User::LeaveIfError(err);
       
    46 
       
    47     return reinterpret_cast<CEapFastPacStore *>(ptr);
       
    48 }
       
    49 
       
    50 // end