omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapter.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:07:52 +0200
changeset 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*     CWPAdapter implementation.
*
*/


// INCLUDES
#include <e32base.h>
#include <ecom/ecom.h>
#include "CWPAdapter.h"
#include "ProvisioningUIDs.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CWPAdapter::CWPAdapter
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
EXPORT_C CWPAdapter::CWPAdapter()
    {
    }

// Destructor
EXPORT_C CWPAdapter::~CWPAdapter()
    {
    REComSession::DestroyedImplementation(iDtor_ID_Key);
    }

// -----------------------------------------------------------------------------
// CWPAdapter::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
EXPORT_C CWPAdapter* CWPAdapter::NewL( const TUid& aImplementationUid )
    {
    // Get the instantiation
    CWPAdapter* pushHandler = 
        REINTERPRET_CAST(CWPAdapter*,
            REComSession::CreateImplementationL(aImplementationUid,
            _FOFF(CWPAdapter, iDtor_ID_Key)));

    return pushHandler;
    }

// -----------------------------------------------------------------------------
// CWPAdapter::ListL
// -----------------------------------------------------------------------------
//
void CWPAdapter::ListL( RImplInfoPtrArray& aImplInfoArray )
    {
    REComSession::ListImplementationsL( TUid::Uid( KProvisioningAdapterInterface ),
        aImplInfoArray );
    }

//  End of File