localconnectivityservice/locod/commoninc/locodbearerplugin.inl
branchRCL_3
changeset 20 4a793f564d72
parent 19 0aa8cc770c8a
child 21 74aa6861c87d
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
     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:  This is the LCD Bearer Plugin construction parameters
       
    15 *                declaration
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <ecom/ecom.h>
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // Creates the bearer plug ins and return it to caller
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 inline CLocodBearerPlugin* CLocodBearerPlugin::NewL(TLocodBearerPluginParams& aParams)
       
    27     {
       
    28 	CLocodBearerPlugin* self = reinterpret_cast<CLocodBearerPlugin*>(
       
    29 		REComSession::CreateImplementationL(
       
    30 			aParams.ImplementationUid(),
       
    31 			_FOFF(CLocodBearerPlugin, iInstanceUid),
       
    32 			(TAny*)&aParams)
       
    33 		);
       
    34 
       
    35 	return self;
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // Destructor
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 inline CLocodBearerPlugin::~CLocodBearerPlugin()
       
    43     {
       
    44     REComSession::DestroyedImplementation(iInstanceUid);
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // Return the implemtation uid
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 inline TUid CLocodBearerPlugin::ImplementationUid() const
       
    52     {
       
    53     return iImplementationUid;
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // Constructor method, just saves the arguments into member variables
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 inline CLocodBearerPlugin::CLocodBearerPlugin(TLocodBearerPluginParams& aParams)
       
    61     : iImplementationUid(aParams.ImplementationUid()),
       
    62       iObserver(aParams.Observer())
       
    63     {
       
    64     }
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // Return the observer class
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 inline MLocodBearerPluginObserver& CLocodBearerPlugin::Observer() const
       
    71     {
       
    72     return iObserver;
       
    73     }