usbmgmt/usbmgr/usbman/server/INC/CUsbDevice.inl
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 * Implements the main object of UsbMan that manages all the USB Classes
       
    16 * and the USB Logical Device (via CUSBDeviceHandler and CUSBStateWatcher).
       
    17 * 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file
       
    25 */
       
    26 
       
    27 #ifndef __CUSBDEVICE_INL__
       
    28 #define __CUSBDEVICE_INL__
       
    29 
       
    30 
       
    31 /**
       
    32  * The CUsbDevice::LastError method
       
    33  *
       
    34  * Fetch the last error that occurred
       
    35  *
       
    36  * @internalComponent
       
    37  *
       
    38  * @return	Last error that occurred, KErrNone if no error
       
    39  */
       
    40 inline TInt CUsbDevice::LastError() const
       
    41 	{
       
    42 	return iLastError;
       
    43 	}
       
    44 
       
    45 
       
    46 /**
       
    47  * The CUsbDevice::UsbBus method
       
    48  *
       
    49  * Fetch a reference to the USB Logical Device Device
       
    50  *
       
    51  * @internalComponent
       
    52  *
       
    53  * @return	A reference to the USB Logical Device Device
       
    54  */
       
    55 inline RDevUsbcClient& CUsbDevice::UsbBus()
       
    56 	{
       
    57 	return iLdd;
       
    58 	}
       
    59 
       
    60 
       
    61 /**
       
    62  * The CUsbDevice::DeviceState method
       
    63  *
       
    64  * Fetch the device's current state
       
    65  *
       
    66  * @internalComponent
       
    67  *
       
    68  * @return	Device's current state
       
    69  */
       
    70 inline TUsbDeviceState CUsbDevice::DeviceState() const
       
    71 	{
       
    72 	return iDeviceState;
       
    73 	}
       
    74 
       
    75 /**
       
    76  * The CUsbDevice::ServiceState method
       
    77  *
       
    78  * Fetch the device's current state
       
    79  *
       
    80  * @internalComponent
       
    81  *
       
    82  * @return	Device's current service state
       
    83  */
       
    84 inline TUsbServiceState CUsbDevice::ServiceState() const
       
    85 	{
       
    86 	return iServiceState;
       
    87 	}
       
    88 
       
    89 /**
       
    90  * Checks if personalities are configured for the device
       
    91  *
       
    92  * @internalComponent 
       
    93  * @return ETrue or EFalse
       
    94  */
       
    95  
       
    96 inline TBool CUsbDevice::isPersonalityCfged() const
       
    97 	{
       
    98 	return iPersonalityCfged;
       
    99 	}
       
   100 	
       
   101 #endif