btservices_plat/obex_service_plugin_api/inc/SrcsInterface.inl
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2002-2007 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 // CSrcsInterface
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline CSrcsInterface::CSrcsInterface()
       
    24     {
       
    25     }
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // destructor
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 inline CSrcsInterface::~CSrcsInterface()
       
    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 CSrcsInterface* CSrcsInterface::NewL(TUid aImplUid)
       
    44     {
       
    45     return REINTERPRET_CAST(CSrcsInterface*,
       
    46                             REComSession::CreateImplementationL(aImplUid,
       
    47                                                                 _FOFF(CSrcsInterface,iDtor_ID_Key)));
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // ListAllImplementationsL
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 inline void CSrcsInterface::ListAllImplementationsL(RImplInfoPtrArray& aImplInfoArray)
       
    55     {
       
    56     REComSession::ListImplementationsL(KCSrcsInterfaceUid, aImplInfoArray);
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // ListImplementationsL
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 inline void CSrcsInterface::ListImplementationsL(const TDesC8& aMatchString, RImplInfoPtrArray& aImplInfoArray)
       
    64     {
       
    65     TEComResolverParams resolverParams;
       
    66     resolverParams.SetDataType(aMatchString);
       
    67     resolverParams.SetWildcardMatch(EFalse);
       
    68     REComSession::ListImplementationsL(KCSrcsInterfaceUid, resolverParams, aImplInfoArray);
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // SetMediaType
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 inline void CSrcsInterface::SetMediaType( TSrcsMediaType )
       
    76 	{	
       
    77 	}
       
    78 // -----------------------------------------------------------------------------
       
    79 // SetObexServer
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 inline TInt CSrcsInterface::SetObexServer( CObexServer* )
       
    83 	{	
       
    84 	return KErrNone;
       
    85 	}