epoc32/include/app/imlauncherplugin.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
     1.1 --- a/epoc32/include/app/imlauncherplugin.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/app/imlauncherplugin.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,42 @@
     1.4 -imlauncherplugin.inl
     1.5 +/*
     1.6 +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Interface for the IM application launching
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +inline CImLauncherPlugin::CImLauncherPlugin()
    1.23 +    {
    1.24 +    }
    1.25 +
    1.26 +inline CImLauncherPlugin::~CImLauncherPlugin()
    1.27 +    {
    1.28 +    // Destroy any instance variables and then
    1.29 +    // inform the framework that this specific 
    1.30 +    // instance of the interface has been destroyed.
    1.31 +    REComSession::DestroyedImplementation(iDtor_ID_Key);
    1.32 +    }
    1.33 +
    1.34 +inline CImLauncherPlugin* CImLauncherPlugin::NewL(const TDesC8& aApplicationId)
    1.35 +    {
    1.36 +    // Set up the interface find for the default resolver.
    1.37 +    TEComResolverParams resolverParams;
    1.38 +    resolverParams.SetDataType(aApplicationId);
    1.39 +    resolverParams.SetWildcardMatch(EFalse);
    1.40 +    TAny* ptr = REComSession::CreateImplementationL(
    1.41 +                                        KImLauncherPluginUid,
    1.42 +                                        _FOFF(CImLauncherPlugin,iDtor_ID_Key),
    1.43 +                                        resolverParams);
    1.44 +
    1.45 +    return REINTERPRET_CAST(CImLauncherPlugin*, ptr);
    1.46 +    }