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