phone_plat/telephony_menu_extension_api/inc/telmenuextension.inl
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Inline functions for CTelMenuExtension.
       
    15 *
       
    16 */
       
    17 
       
    18 #include <ecom/ecom.h>
       
    19 
       
    20 // ============================ MEMBER FUNCTIONS ===============================
       
    21 // -----------------------------------------------------------------------------
       
    22 // Destructor.
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 inline CTelMenuExtension::~CTelMenuExtension()
       
    26     {
       
    27     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    28     }
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // Two-phased constructor.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 inline CTelMenuExtension* CTelMenuExtension::NewL( 
       
    35     TUid aImplementationUid ) 
       
    36     {
       
    37     TAny* ptr( NULL );
       
    38     TInt32 keyOffset = _FOFF( CTelMenuExtension, iDtor_ID_Key );
       
    39     ptr = REComSession::CreateImplementationL(
       
    40         aImplementationUid,
       
    41         keyOffset );
       
    42     
       
    43     CTelMenuExtension* plugin = 
       
    44         reinterpret_cast <CTelMenuExtension*> (ptr);
       
    45     return plugin;
       
    46     }    
       
    47 
       
    48 //  End of File