usbmgmt/usbmgr/usbman/client/public/usbstates.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2003-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 * State enumerations for the RUsb Client side header
       
    16 *
       
    17 */
       
    18 
       
    19 /**
       
    20  @file
       
    21 */
       
    22 
       
    23 #ifndef __USBSTATES_H__
       
    24 #define __USBSTATES_H__
       
    25 
       
    26 #include <e32def.h>
       
    27 
       
    28 /** TUsbServiceState
       
    29 
       
    30 	Enumeration of all the USB service states.
       
    31 
       
    32 	@publishedPartner
       
    33 	@released
       
    34 */
       
    35 enum TUsbServiceState
       
    36 	{
       
    37 	/** EUsbServiceIdle 
       
    38 		The service is not started.
       
    39 	*/
       
    40 	EUsbServiceIdle        = 0x01,
       
    41 	
       
    42 	/** EUsbServiceStarting */
       
    43 	EUsbServiceStarting    = 0x02,
       
    44 	
       
    45 	/** EUsbServiceStarted */
       
    46 	EUsbServiceStarted     = 0x04,
       
    47 	
       
    48 	/** EUsbServiceStopping */
       
    49 	EUsbServiceStopping    = 0x08,
       
    50 
       
    51 	/** EUsbServiceFatalError */
       
    52 	EUsbServiceFatalError  = 0x10
       
    53 	};
       
    54 
       
    55 /** TUsbDeviceState
       
    56 
       
    57 	Enumeration of all of the states of the USB device.
       
    58 	The states reported are dependent on the hardware.
       
    59 
       
    60 	*** If this changes update KUsbDeviceStates below ***
       
    61 
       
    62 	@publishedPartner
       
    63 	@released
       
    64 */
       
    65 enum TUsbDeviceState
       
    66 	{
       
    67 	/** EUsbDeviceStateUndefined */
       
    68 	EUsbDeviceStateUndefined  = 0x00,
       
    69 
       
    70 	/** EUsbDeviceStateDefault */
       
    71 	EUsbDeviceStateDefault    = 0x01,
       
    72 
       
    73 	/** EUsbDeviceStateAttached */
       
    74 	EUsbDeviceStateAttached   = 0x02,
       
    75 
       
    76 	/** EUsbDeviceStatePowered */
       
    77 	EUsbDeviceStatePowered    = 0x04,
       
    78 
       
    79 	/** EUsbDeviceStateConfigured */
       
    80 	EUsbDeviceStateConfigured = 0x08,
       
    81 
       
    82 	/** EUsbDeviceStateAddress */
       
    83 	EUsbDeviceStateAddress    = 0x10,
       
    84 
       
    85 	/** EUsbDeviceStateSuspended */
       
    86 	EUsbDeviceStateSuspended  = 0x20
       
    87 	};
       
    88 
       
    89 /**
       
    90 Number of different USB Device States
       
    91 
       
    92 @publishedPartner
       
    93 */
       
    94 const TInt KUsbDeviceStates = 7;
       
    95 
       
    96 
       
    97 #endif //__USBSTATES_H__