usbengines/usbotgwatcher/inc/definitions.h
branchRCL_3
changeset 20 a15c582fbf97
parent 13 7068aba64af5
child 21 ff9df6630274
equal deleted inserted replaced
13:7068aba64af5 20:a15c582fbf97
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     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:  Definitions for otgwatcher
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Definitions for otgwatcher
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef DEFENITIONS_H
    18 #ifndef DEFENITIONS_H
    20 #define DEFENITIONS_H
    19 #define DEFENITIONS_H
    21 
    20 
    22 #include <e32base.h>
    21 #include <e32base.h>
    37  * one another states objects, they just know ids
    36  * one another states objects, they just know ids
    38  */
    37  */
    39 enum TUsbStateIds
    38 enum TUsbStateIds
    40     {
    39     {
    41     EUsbStateHostUndefined,
    40     EUsbStateHostUndefined,
    42     
    41 
    43     EUsbStateHostAInitiate,
    42     EUsbStateHostAInitiate,
    44     EUsbStateHostAHost,
    43     EUsbStateHostAHost,
    45     EUsbStateHostAPeripheral,
    44     EUsbStateHostAPeripheral,
    46     EUsbStateHostAIdle,
       
    47 
    45 
    48     EUsbStateHostHandle,
    46     EUsbStateHostDelayAttachedHandle,
    49     EUsbStateHostDelayHandle
    47     EUsbStateHostDelayNotAttachedHandle,
       
    48     EUsbStateHostHandleDropping
    50     };
    49     };
    51 
    50 
    52 const TInt KUsbWatcherPeripheralIsNotConnected = 0; // means not(KUsbWatcherPeripheralIsConnected)
    51 const TInt KUsbWatcherPeripheralIsNotConnected = 0; // means not(KUsbWatcherPeripheralIsConnected)
    53 const TInt KUsbWatcherPeripheralIsConnected = 1; // means drivers loaded and session ON at least for one peripheral
    52 const TInt KUsbWatcherPeripheralIsConnected = 1; // means drivers loaded and session ON at least for one peripheral
    54 
    53