supl/locationomasuplpostester/epos_comasuplpostestermodulecfg/inc/epos_comasuplecomhandler.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Intracts with ECom Framework.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_COMASUPLECOMHANDLER_H
       
    19 #define C_COMASUPLECOMHANDLER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32def.h>
       
    23 #include <ecom/implementationinformation.h>
       
    24 
       
    25 /**
       
    26  *  Intracts with ECom framework.
       
    27  *
       
    28  *  Identifies all implementations associated with a particular
       
    29  *  Interface UId and stores it in an array.
       
    30  *
       
    31  *  @lib PosTesterModuleCfg.lib
       
    32  *  @since S60 v3.1u
       
    33  */
       
    34 class COMASuplEComHandler : public CBase
       
    35 	{
       
    36 	public:
       
    37 		static	COMASuplEComHandler* NewL(const TInt aInterfaceUid);
       
    38 		virtual ~COMASuplEComHandler();
       
    39 		/**
       
    40 		 * Gets the list of all implementations associated with
       
    41 		 * an Interface UId
       
    42 		 *
       
    43 		 * @since S60 v3.1u
       
    44 		 * @return RImplInfoPtrArray&: Contains all implementations
       
    45 		 * associated with the UId.
       
    46 		 */
       
    47 		const RImplInfoPtrArray& GetImplementationList();
       
    48 
       
    49 		/**
       
    50 		 * Initializes the list of all implementations associated with
       
    51 		 * an Interface UId.
       
    52 		 *
       
    53 		 * @since S60 v3.1u
       
    54 		 * @return void
       
    55 		 */
       
    56 		void InitializeImplementationListL();
       
    57 
       
    58 		/**
       
    59 		 * Closes session with ECom (FinalClose())
       
    60 		 *
       
    61 		 * @since S60 v3.1u
       
    62 		 * @return void
       
    63 		 */
       
    64 		void UnLoadImplementation();
       
    65 
       
    66 	protected:
       
    67 		/**
       
    68 		 * Constructor
       
    69 		 *
       
    70 		 * @since S60 v3.1
       
    71 		 * @param aInterfaceUid: InterfaceUid 
       
    72 		 * @return 
       
    73 		 */
       
    74 		COMASuplEComHandler(const TInt aInterfaceUid);
       
    75 
       
    76 	private:
       
    77 		/**
       
    78 	     * Two Phase constructor
       
    79 	     *
       
    80 	     * @since S60 v3.1
       
    81 	     * @return void
       
    82 	     */
       
    83 		void ConstructL();
       
    84 	
       
    85 	private:
       
    86 	    /**
       
    87 	     * Contains list of Implementations identified by ECom Framework.
       
    88 	     */
       
    89 		RImplInfoPtrArray iImplementationList;
       
    90 
       
    91 	    /**
       
    92 	     * Contains Interface Uid.
       
    93 	     */	
       
    94 		TUid iInterfaceUid;
       
    95 
       
    96 	    /**
       
    97 	     * identifer returned by ECom to identify an instance to the framework.
       
    98      	 */
       
    99 		TUid iDtorIdKey;
       
   100 	};
       
   101 #endif