omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapter.cpp
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     CWPAdapter implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 #include <ecom/ecom.h>
       
    23 #include "CWPAdapter.h"
       
    24 #include "ProvisioningUIDs.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CWPAdapter::CWPAdapter
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 EXPORT_C CWPAdapter::CWPAdapter()
       
    35     {
       
    36     }
       
    37 
       
    38 // Destructor
       
    39 EXPORT_C CWPAdapter::~CWPAdapter()
       
    40     {
       
    41     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CWPAdapter::NewL
       
    46 // Two-phased constructor.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CWPAdapter* CWPAdapter::NewL( const TUid& aImplementationUid )
       
    50     {
       
    51     // Get the instantiation
       
    52     CWPAdapter* pushHandler = 
       
    53         REINTERPRET_CAST(CWPAdapter*,
       
    54             REComSession::CreateImplementationL(aImplementationUid,
       
    55             _FOFF(CWPAdapter, iDtor_ID_Key)));
       
    56 
       
    57     return pushHandler;
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // CWPAdapter::ListL
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 void CWPAdapter::ListL( RImplInfoPtrArray& aImplInfoArray )
       
    65     {
       
    66     REComSession::ListImplementationsL( TUid::Uid( KProvisioningAdapterInterface ),
       
    67         aImplInfoArray );
       
    68     }
       
    69 
       
    70 //  End of File