usbmgmt/usbmgr/device/classdrivers/acm/classimplementation/ecacm/inc/CdcInterfaceBase.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 1997-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CDCINTERFACEBASE_H__
       
    19 #define __CDCINTERFACEBASE_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <d32usbc.h>
       
    23 
       
    24 NONSHARABLE_CLASS(CCdcInterfaceBase) : public CBase
       
    25 /**
       
    26  * Base class for ACM interface subclasses.
       
    27  */
       
    28 	{
       
    29 public:
       
    30 	~CCdcInterfaceBase();
       
    31 
       
    32 public:
       
    33 	TInt GetInterfaceNumber(TUint8& aIntNumber);
       
    34 
       
    35 protected:
       
    36 	CCdcInterfaceBase(const TDesC16& aIfcName);
       
    37 	void BaseConstructL();
       
    38 
       
    39 private:
       
    40 	virtual TInt SetUpInterface() = 0;
       
    41 
       
    42 protected: // owned
       
    43 	RDevUsbcClient iLdd;			///< The Ldd to use.
       
    44 	TPtrC16 iIfcName;
       
    45 	};
       
    46 
       
    47 #endif // __CDCINTERFACEBASE_H__