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 */ |
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 |