localconnectivityservice/obexserviceman/obexservicemanserver/inc/SrcsTransport.inl
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     1 /*
       
     2 * Copyright (c) 2002-2010 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:  Define SRCS's service controller ECom interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // CSrcsTransport
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline CSrcsTransport::CSrcsTransport()
       
    24     {
       
    25     }
       
    26     
       
    27 // -----------------------------------------------------------------------------
       
    28 // ~CSrcsTransport
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 inline CSrcsTransport::~CSrcsTransport()
       
    32     {
       
    33     // Destroy any instance variables and then
       
    34     // inform the framework that this specific
       
    35     // instance of the interface has been destroyed.
       
    36     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // NewL
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 inline CSrcsTransport* CSrcsTransport::NewL(TUid aImplUid, CImplementationInformation* aParams)
       
    44     {
       
    45     return REINTERPRET_CAST(CSrcsTransport*,
       
    46                             REComSession::CreateImplementationL(aImplUid,
       
    47                                                                 _FOFF(CSrcsTransport,iDtor_ID_Key),
       
    48                                                                 aParams));
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // ListAllImplementationsL
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 inline void CSrcsTransport::ListAllImplementationsL(RImplInfoPtrArray& aImplInfoArray)
       
    56     {
       
    57     REComSession::ListImplementationsL(KCSrcsTransportUid, aImplInfoArray);
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // ListImplementationsL
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 inline void CSrcsTransport::ListImplementationsL(const TDesC8& aMatchString, RImplInfoPtrArray& aImplInfoArray)
       
    65     {
       
    66     TEComResolverParams resolverParams;
       
    67     resolverParams.SetDataType(aMatchString);
       
    68     resolverParams.SetWildcardMatch(EFalse);
       
    69     REComSession::ListImplementationsL(KCSrcsTransportUid, resolverParams, aImplInfoArray);
       
    70     }
       
    71     
       
    72 inline void CSrcsTransport::PostInitializeL()
       
    73     {
       
    74     }