|
1 /* |
|
2 * Copyright (c) 2005-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 * |
|
16 */ |
|
17 |
|
18 #ifndef USBUINOTIF_H |
|
19 #define USBUINOTIF_H |
|
20 |
|
21 #include <eiknotapi.h> |
|
22 |
|
23 /** |
|
24 * Different note types |
|
25 */ |
|
26 enum TUSBUINotes |
|
27 { |
|
28 }; |
|
29 |
|
30 /** |
|
31 * Used with information notes |
|
32 */ |
|
33 struct TUSBNotesNotiferParams |
|
34 { |
|
35 TUSBUINotes iNote; |
|
36 }; |
|
37 |
|
38 /** |
|
39 * Used with connection notifier |
|
40 */ |
|
41 struct TUSBConnectionNotiferParams |
|
42 { |
|
43 TInt iPersonalityId; |
|
44 }; |
|
45 |
|
46 /** |
|
47 * Package for information notes |
|
48 */ |
|
49 typedef TPckgBuf<TUSBNotesNotiferParams> TUSBNotesNotifierParamsPckg; |
|
50 |
|
51 /** |
|
52 * Package for connection note |
|
53 */ |
|
54 typedef TPckgBuf<TUSBConnectionNotiferParams> TUSBConnectionNotifierParamsPckg; |
|
55 |
|
56 /** |
|
57 * Different query types |
|
58 */ |
|
59 enum TUSBUIQueries |
|
60 { |
|
61 EUSBMemoryCardUnlocked, |
|
62 EUSBStorageMediaFailure, |
|
63 EUSBPossibleDataLossCable, |
|
64 EUSBPossibleDataLossMMC, |
|
65 EUSBChangeFromMassStorage, |
|
66 EUSBNoMemoryCard |
|
67 }; |
|
68 |
|
69 /** |
|
70 * Used with queries |
|
71 */ |
|
72 struct TUSBQueriesNotiferParams |
|
73 { |
|
74 TUSBUIQueries iQuery; |
|
75 TInt iDrive; |
|
76 }; |
|
77 |
|
78 /** |
|
79 * Package for queries |
|
80 */ |
|
81 typedef TPckgBuf<TUSBQueriesNotiferParams> TUSBQueriesNotifierParamsPckg; |
|
82 |
|
83 /** |
|
84 * Notifier id for USB Cable Connection |
|
85 */ |
|
86 const TUid KCableConnectedNotifierUid = {0x102068DE}; |
|
87 |
|
88 /** |
|
89 * Notifier id for USB Notes |
|
90 */ |
|
91 const TUid KNotesNotifier = {0x102068E0}; |
|
92 |
|
93 /** |
|
94 * Notifier id for USB Queries |
|
95 */ |
|
96 const TUid KQueriesNotifier = {0x102068E1}; |
|
97 |
|
98 /** |
|
99 * Notifier id for USB connection |
|
100 */ |
|
101 const TUid KUsbConnectionNotifier = {0x10282544}; |
|
102 |
|
103 |
|
104 /** |
|
105 * Notifier id for USB OTG Warning |
|
106 */ |
|
107 const TUid KUsbUiNotifOtgWarning = {0x2000B001}; |
|
108 |
|
109 /** |
|
110 * Notifier id for USB OTG Error |
|
111 */ |
|
112 const TUid KUsbUiNotifOtgError = {0x2000B002}; |
|
113 |
|
114 /** |
|
115 * Notifier id for USB OTG indicator |
|
116 */ |
|
117 const TUid KUsbUiNotifOtgIndicator = {0x2000B003}; |
|
118 |
|
119 /** |
|
120 * Notifier id for mass storage mount manager error |
|
121 * THostMsErrData is used as parameter for delivering error |
|
122 * information |
|
123 */ |
|
124 const TUid KUsbUiNotifMsmmError = {0x2001FE3A}; |
|
125 |
|
126 /** |
|
127 * Parameter for both KUsbUiNotifOtgWarning and KUsbUiNotifOtgError |
|
128 * Possible values listed in following two enums |
|
129 */ |
|
130 typedef TPckgBuf<TInt> TUsbUiNotifOtgParam; |
|
131 |
|
132 /** |
|
133 * Possible parameter values for KUsbUiNotifOtgNote |
|
134 */ |
|
135 enum TUsbUiNotifOtgWarning |
|
136 { |
|
137 EUsbOtgPartiallySupportedDevice |
|
138 }; |
|
139 |
|
140 /** |
|
141 * Possible parameter values for KUsbUiNotifOtgQuery |
|
142 */ |
|
143 enum TUsbUiNotifOtgError |
|
144 { |
|
145 EUsbOtgTooMuchPower, // Error during operating |
|
146 EUsbOtgTooMuchPowerRequired,// Error during enumerating |
|
147 EUsbOtgUnsupportedDevice, |
|
148 EUsbOtgHubUnsupported, |
|
149 EUsbOtgErrorInConnection, |
|
150 EUsbOtgErrorAttachTimedOut |
|
151 }; |
|
152 |
|
153 #endif // USBUINOTIF_H |
|
154 |
|
155 // End of File |