pkiutilities/DeviceToken/Src/KeyStore/EComPlugin/DevTokenKeyStorePlugin.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 DevTokenKeyStorePlugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <ecom/implementationproxy.h>
       
    22 #include <ct.h>
       
    23 #include "DevTokenImplementationUID.hrh"
       
    24 #include "DevTokenType.h"
       
    25 
       
    26 static CCTTokenType* NewFunctionL();
       
    27 
       
    28 // ======== LOCAL FUNCTIONS ========
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // CCTTokenType* NewFunctionL()
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CCTTokenType* NewFunctionL()
       
    35     {
       
    36     CCTTokenType* DevCertKeyStore = NULL;
       
    37     //Implementation UID of Device Token KeyStore
       
    38     TUid uid;
       
    39     uid.iUid = DEVCERTKEYSTORE_IMPLEMENTATION_UID;
       
    40     DevCertKeyStore = CDevTokenType::NewL(uid);
       
    41     return (DevCertKeyStore);
       
    42     }
       
    43 
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // TImplementationProxy ImplementationTable[] 
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 const TImplementationProxy ImplementationTable[] =
       
    50     {
       
    51     IMPLEMENTATION_PROXY_ENTRY(DEVCERTKEYSTORE_IMPLEMENTATION_UID, NewFunctionL)
       
    52     };
       
    53 
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // TImplementationProxy* ImplementationGroupProxy()
       
    57 // This function is needed by ECom and is the only one exported function
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    61     {
       
    62     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    63     return (ImplementationTable);
       
    64     }
       
    65 
       
    66 //EOF