pkiutilities/DeviceToken/Src/Certstore/TruSrvECOMPlugin/DevTokenTruSrvCertStorePlugin.cpp
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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:   Implementation of DevandTruSrvCertStorePlugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <implementationproxy.h>
       
    22 #include <mctcertstore.h>
       
    23 #include <ct.h>
       
    24 #include "DevTokenImplementationUID.hrh"
       
    25 #include "DevTokenType.h"
       
    26 
       
    27 static CCTTokenType* NewFunctionL();
       
    28 
       
    29 // ======== LOCAL FUNCTIONS ========
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // CCTTokenType* NewFunctionL()
       
    33 // ---------------------------------------------------------------------------
       
    34 //
       
    35 CCTTokenType* NewFunctionL()
       
    36     {
       
    37     CCTTokenType* TruSrvCertStore = NULL;
       
    38     //Implementation UID of Trust Server Certstore
       
    39     TUid uid;
       
    40     uid.iUid = TRUSRVCERTSTORE_IMPLEMENTATION_UID;
       
    41     TruSrvCertStore = CDevTokenType::NewL( uid );
       
    42     return ( TruSrvCertStore );
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // TImplementationProxy ImplementationTable[] 
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 const TImplementationProxy ImplementationTable[] =
       
    51     {
       
    52     IMPLEMENTATION_PROXY_ENTRY( TRUSRVCERTSTORE_IMPLEMENTATION_UID, NewFunctionL )
       
    53     };
       
    54 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // TImplementationProxy* ImplementationGroupProxy()
       
    58 // This function is needed by ECom and is the only one exported function
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    62     {
       
    63     aTableCount = sizeof( ImplementationTable) / sizeof( TImplementationProxy );
       
    64     return ( ImplementationTable );
       
    65     }
       
    66 
       
    67 
       
    68