epoc32/include/uloggerplugin.inl
branchSymbian3
changeset 4 837f303aceeb
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // ULogger plug-in base class implementation
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @publishedPartner
       
    21  @prototype
       
    22 */
       
    23 
       
    24 
       
    25 namespace Ulogger
       
    26 {
       
    27 const TUid KCPluginUid ={0x102836C9};
       
    28 	
       
    29 
       
    30 inline CPlugin* CPlugin::NewL(const TDesC8& aCue)
       
    31 	{
       
    32 	
       
    33 	TEComResolverParams resolverParams;
       
    34 	resolverParams.SetDataType(aCue);
       
    35 	resolverParams.SetWildcardMatch(ETrue);
       
    36 	TAny* pluginBase = REComSession::CreateImplementationL(KCPluginUid,_FOFF(CPlugin,iDtor_ID_Key),NULL,resolverParams);
       
    37 	return (reinterpret_cast<CPlugin*>(pluginBase));
       
    38 	}
       
    39 	
       
    40 	
       
    41 inline CPlugin::~CPlugin()
       
    42 	{
       
    43 	REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    44 	}
       
    45 
       
    46 } // namespace