phone_plat/telephony_matching_extension_api/inc/telmatchingextension.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:31:22 +0300
branchRCL_3
changeset 81 c26cc2a7c548
parent 0 5f000ab63145
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2008 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:  Inline functions for CTelMatchingExtension.
*
*/

#include <ecom/ecom.h>

// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// Destructor.
// -----------------------------------------------------------------------------
//
inline CTelMatchingExtension::~CTelMatchingExtension()
    {
    REComSession::DestroyedImplementation( iDtor_ID_Key );
    }

// -----------------------------------------------------------------------------
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
inline CTelMatchingExtension* CTelMatchingExtension::NewL( 
    TUid aImplementationUid ) 
    {
    TAny* ptr;
    TInt32 keyOffset = _FOFF( CTelMatchingExtension, iDtor_ID_Key );
    ptr = REComSession::CreateImplementationL(
        aImplementationUid,
        keyOffset );
    
    CTelMatchingExtension* plugin = 
        reinterpret_cast <CTelMatchingExtension*> (ptr);
    return plugin;
    }    

//  End of File