im_pub/im_api/inc/imconnection.inl
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  IM Connection inline functions
       
    15 *
       
    16 */
       
    17 
       
    18 inline CImConnection::CImConnection()
       
    19 	{
       
    20 	}
       
    21 
       
    22 inline CImConnection::~CImConnection()
       
    23 	{
       
    24 	// Destroy any instance variables and then
       
    25 	// inform the framework that this specific 
       
    26 	// instance of the interface has been destroyed.
       
    27 	REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    28 
       
    29     }
       
    30 
       
    31 inline CImConnection* CImConnection::NewL(const TDesC& aClientId)
       
    32     {
       
    33     // Set up the interface find for the default resolver.
       
    34     
       
    35     TUid KDefaultImplemantationUid = {0x101FB0CA};
       
    36     TAny* ptr = REComSession::CreateImplementationL(
       
    37         KDefaultImplemantationUid, 
       
    38         _FOFF(CImConnection,iDtor_ID_Key),
       
    39         (TAny*) &aClientId);
       
    40     
       
    41     
       
    42     return REINTERPRET_CAST(CImConnection*, ptr);
       
    43     }
       
    44