localconnectivityservice/locod/commoninc/locodserviceplugin.inl
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     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 Service Plugin construction parameters
       
    15 *                declaration
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <ecom.h>
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // Constructor method, just saves the arguments into member variables
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 inline CLocodServicePlugin* CLocodServicePlugin::NewL(TLocodServicePluginParams& aParams)
       
    27     {
       
    28 	CLocodServicePlugin* self = reinterpret_cast<CLocodServicePlugin*>(
       
    29 		REComSession::CreateImplementationL(
       
    30 			aParams.ImplementationUid(),
       
    31 			_FOFF(CLocodServicePlugin, iInstanceUid),
       
    32 			(TAny*)&aParams)
       
    33 		);
       
    34 
       
    35 	return self;
       
    36     }
       
    37     
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // Service plug ins destructor
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 inline CLocodServicePlugin::~CLocodServicePlugin()
       
    44     {
       
    45     REComSession::DestroyedImplementation(iInstanceUid);
       
    46     }
       
    47     
       
    48 // -----------------------------------------------------------------------------
       
    49 // returns the implementation UID
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 inline TUid CLocodServicePlugin::ImplementationUid() const
       
    53     {
       
    54     return iImplementationUid;
       
    55     }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // CLocodServicePlugin C++ constructor
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 inline CLocodServicePlugin::CLocodServicePlugin(TLocodServicePluginParams& aParams)
       
    62     : iImplementationUid(aParams.ImplementationUid()),
       
    63       iObserver(aParams.Observer())
       
    64     {
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // return the observer class
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 inline MLocodServicePluginObserver& CLocodServicePlugin::Observer() const
       
    72     {
       
    73     return iObserver;
       
    74     }
       
    75