bthci/bthci2/initialisor/interface/ControllerInitialisationPlugin.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef CONTROLLERINITIALISATIONPLUGIN_H
       
    23 #define CONTROLLERINITIALISATIONPLUGIN_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 /**
       
    28 The ECOM interface definition for the Controller Initialisation Plugin.
       
    29 */
       
    30 class CControllerInitialisationPlugin : public CBase
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	Attempt to load specified implementation
       
    35 	*/
       
    36 	IMPORT_C static CControllerInitialisationPlugin* NewL(TUid aImplementationUid);
       
    37 
       
    38 	/**
       
    39 	Attempt to load single instance implementation
       
    40 	*/
       
    41 	IMPORT_C static CControllerInitialisationPlugin* NewL();
       
    42 	
       
    43 	/** 
       
    44 	Destructor. 
       
    45 	All interfaces obtained through the Interface will be deleted.
       
    46 	*/
       
    47 	IMPORT_C ~CControllerInitialisationPlugin();
       
    48 
       
    49 	/**
       
    50 	Retrieves an instance of an interface to functionality provided by the 
       
    51 	Initialisation plugin.
       
    52 	
       
    53 	@param aUid UID of the API to be retrieved.
       
    54 	@return a pointer to an implementation of the interface given by aUid. This 
       
    55 		does not transfer ownership of the implmentation.
       
    56 	*/
       
    57 	virtual TAny* Interface(TUid aUid) = 0;
       
    58 
       
    59 protected:
       
    60 	IMPORT_C CControllerInitialisationPlugin();
       
    61 
       
    62 private:
       
    63 	/**
       
    64 	UID set by ECOM when the instance is created. Used when the instance is
       
    65 	destroyed.
       
    66 	*/
       
    67 	TUid iInstanceId;
       
    68 
       
    69 	/**
       
    70 	Pad for BC-friendly future change.
       
    71 	*/
       
    72 	TAny* iPad;
       
    73 	};
       
    74 
       
    75 #endif // CONTROLLERINITIALISATIONPLUGIN_H