usbengines/usbotgwatcher/inc/cusbstatehostaperipheral.h
branchRCL_3
changeset 20 a15c582fbf97
parent 0 1e05558e2206
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:  Implements concrete state
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Implements concrete state
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_USBSTATEHOSTAPERIPHERAL_H
    18 #ifndef C_USBSTATEHOSTAPERIPHERAL_H
    20 #define C_USBSTATEHOSTAPERIPHERAL_H
    19 #define C_USBSTATEHOSTAPERIPHERAL_H
    21 
    20 
    22 #include "cusbotgwatcher.h"
       
    23 #include "cusbstatehostabase.h"
    21 #include "cusbstatehostabase.h"
    24 #ifndef STIF
    22 
    25 #include "cusbtimer.h"
    23 class CUsbOtgWatcher;
    26 #else
       
    27 #include "mockcusbtimer.h"
       
    28 #endif
       
    29 
    24 
    30 /**
    25 /**
    31  *  This class implements behaviour when A device performs peripheral role, from OTG point of view
    26  *  This class implements behaviour when A device performs peripheral role, from OTG point of view
    32  *
    27  *
    33  */
    28  */
    38 
    33 
    39     /**
    34     /**
    40      * Two-phased constructor.
    35      * Two-phased constructor.
    41      * @param aWatcher owner
    36      * @param aWatcher owner
    42      */
    37      */
    43     static CUsbStateHostAPeripheral* NewL(CUsbOtgWatcher* aWatcher);
    38     static CUsbStateHostAPeripheral* NewL(CUsbOtgWatcher& aWatcher);
    44 
    39 
    45     /**
    40     /**
    46      * Destructor.
    41      * Destructor.
    47      */
    42      */
    48     virtual ~CUsbStateHostAPeripheral();
    43     virtual ~CUsbStateHostAPeripheral();
    51 
    46 
    52     /**
    47     /**
    53      * default constructor
    48      * default constructor
    54      * @param aWatcher owner
    49      * @param aWatcher owner
    55      */
    50      */
    56     CUsbStateHostAPeripheral(CUsbOtgWatcher* aWatcher);
    51     CUsbStateHostAPeripheral(CUsbOtgWatcher& aWatcher);
    57 
    52 
    58     /**
    53     /**
    59      * 2nd phase construction
    54      * 2nd phase construction
    60      */
    55      */
    61     void ConstructL();
    56     void ConstructL();
    62 
       
    63     /**
       
    64      * State machine calls this, state object to perform any initial  
       
    65      * activity, once just entered this state
       
    66      *
       
    67      */
       
    68     void JustAdvancedToThisStateL();
       
    69 
    57 
    70     //from CUsbState
    58     //from CUsbState
    71     /**
    59     /**
    72      * state id
    60      * state id
    73      * @return state id
    61      * @return state id