usbservices_plat/usb_personality_plugin_api/inc/cusbpersonalityplugin.h
changeset 35 9d8b04ca6939
parent 0 1e05558e2206
equal deleted inserted replaced
34:7858bc6ead78 35:9d8b04ca6939
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Header file for CUsbPersonalityPlugin class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CUSBPERSONALITYPLUGIN_H__
       
    20 #define CUSBPERSONALITYPLUGIN_H__
       
    21 
       
    22 #include <cusbpersonality.h>
       
    23 
       
    24 class RUsb;
       
    25 
       
    26 /**
       
    27  *  All personalities must be inherited from this class.
       
    28  *  ECOM framework is used here.
       
    29  *
       
    30  *  @lib euser.lib, ecom.lib
       
    31  *  @since S60 3.2
       
    32  */
       
    33 class CUsbPersonalityPlugin : public CUsbPersonality
       
    34 	{
       
    35 public: 
       
    36 	/** 
       
    37 	 * Factory function
       
    38 	 *
       
    39      * @since S60 3.2
       
    40 	 * @param aPersonalityParams Reference to container class
       
    41 	 * @param aImplementationId The UID of this implementation.
       
    42 	 * @return Ownership of a new CUsbPersonalityPlugin.
       
    43 	 */
       
    44 	IMPORT_C static CUsbPersonalityPlugin* NewL(TUsbPersonalityParams& aPersonalityParams, TUid aImplementationId);
       
    45 
       
    46 	/** 
       
    47 	 * Destructor
       
    48 	 */
       
    49 	IMPORT_C virtual ~CUsbPersonalityPlugin();
       
    50 
       
    51 protected:
       
    52 
       
    53 	/** 
       
    54 	 * Constructor
       
    55 	 */
       
    56 	IMPORT_C CUsbPersonalityPlugin(TUsbPersonalityParams& aPersonalityParams);
       
    57 
       
    58 protected:
       
    59 	
       
    60 	/**
       
    61 	 * UID given to us by ECOM when the instance is created. Used when the 
       
    62      * instance is destroyed.
       
    63      */
       
    64 	TUid iPrivateEComUID;
       
    65 	};
       
    66 
       
    67 #endif