diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/pktdrv/inc/ncmnotificationdescriptor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/pktdrv/inc/ncmnotificationdescriptor.h Tue Aug 31 17:01:47 2010 +0300 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* header file for NCM notification message class +* +*/ + + + +#ifndef NCMNOTIFICATIONDESCRIPTOR_H +#define NCMNOTIFICATIONDESCRIPTOR_H + +#include + + +const TUint KUSBNotificationNetworkConnection = 8; + +/** + * USB NetworkConnection Notification + */ + +NONSHARABLE_CLASS(TUSBNotificationNetworkConnection) + { +public: + TUint8 iRequestType; ///< Request type + TUint8 iNotification; ///< Notification number + TUint16 iValue; ///< Notification value + TUint16 iIndex; ///< Notification index + TUint16 iLength; ///< Notification length +public: + TDes8& Des(); + +private: + TBuf8 iBuffer; + }; + +const TUint KUSBNotificationConnectionSpeedChange = 16; + +/** + * USB ConnectionSpeedChange Notification + */ + +NONSHARABLE_CLASS(TUSBNotificationConnectionSpeedChange) + { +public: + TUint8 iRequestType; ///< Request type + TUint8 iNotification; ///< Notification number + TUint16 iValue; ///< Notification value + TUint16 iIndex; ///< Notification index + TUint16 iLength; ///< Notification length + TUint32 iUSBitRate; ///< upstream bit rate, in bits per second + TUint32 iDSBitRate; ///< downstream bit rate, in bits per second +public: + TDes8& Des(); + +private: + TBuf8 iBuffer; + }; + +#endif // NCMNOTIFICATIONDESCRIPTOR_H +