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 EUSBNotEnoughRam, |
|
68 EUSBDiskFull |
|
69 }; |
|
70 |
|
71 /** |
|
72 * Used with queries |
|
73 */ |
|
74 struct TUSBQueriesNotiferParams |
|
75 { |
|
76 TUSBUIQueries iQuery; |
|
77 TInt iDrive; |
|
78 }; |
|
79 |
|
80 /** |
|
81 * Package for queries |
|
82 */ |
|
83 typedef TPckgBuf<TUSBQueriesNotiferParams> TUSBQueriesNotifierParamsPckg; |
|
84 |
|
85 /** |
|
86 * Notifier id for USB Cable Connection |
|
87 */ |
|
88 const TUid KCableConnectedNotifierUid = {0x102068DE}; |
|
89 |
|
90 /** |
|
91 * Notifier id for USB Notes |
|
92 */ |
|
93 const TUid KNotesNotifier = {0x102068E0}; |
|
94 |
|
95 /** |
|
96 * Notifier id for USB Queries |
|
97 */ |
|
98 const TUid KQueriesNotifier = {0x102068E1}; |
|
99 |
|
100 /** |
|
101 * Notifier id for USB connection |
|
102 */ |
|
103 const TUid KUsbConnectionNotifier = {0x10282544}; |
|
104 |
|
105 |
|
106 /** |
|
107 * Notifier id for USB OTG Warning |
|
108 */ |
|
109 const TUid KUsbUiNotifOtgWarning = {0x2000B001}; |
|
110 |
|
111 /** |
|
112 * Notifier id for USB OTG Error |
|
113 */ |
|
114 const TUid KUsbUiNotifOtgError = {0x2000B002}; |
|
115 |
|
116 /** |
|
117 * Notifier id for USB OTG indicator |
|
118 */ |
|
119 const TUid KUsbUiNotifOtgIndicator = {0x2000B003}; |
|
120 |
|
121 /** |
|
122 * Notifier id for mass storage mount manager error |
|
123 * THostMsErrData is used as parameter for delivering error |
|
124 * information |
|
125 */ |
|
126 const TUid KUsbUiNotifMsmmError = {0x2001FE3A}; |
|
127 |
|
128 /** |
|
129 * Parameter for both KUsbUiNotifOtgWarning and KUsbUiNotifOtgError |
|
130 * Possible values listed in following two enums |
|
131 */ |
|
132 typedef TPckgBuf<TInt> TUsbUiNotifOtgParam; |
|
133 |
|
134 /** |
|
135 * Possible parameter values for KUsbUiNotifOtgNote |
|
136 */ |
|
137 enum TUsbUiNotifOtgWarning |
|
138 { |
|
139 EUsbOtgPartiallySupportedDevice |
|
140 }; |
|
141 |
|
142 /** |
|
143 * Possible parameter values for KUsbUiNotifOtgQuery |
|
144 */ |
|
145 enum TUsbUiNotifOtgError |
|
146 { |
|
147 EUsbOtgTooMuchPower, // Error during operating |
|
148 EUsbOtgTooMuchPowerRequired,// Error during enumerating |
|
149 EUsbOtgUnsupportedDevice, |
|
150 EUsbOtgHubUnsupported, |
|
151 EUsbOtgErrorInConnection, |
|
152 EUsbOtgErrorAttachTimedOut, |
|
153 EUsbOtgErrorNoMemory |
|
154 }; |
|
155 |
|
156 #endif // USBUINOTIF_H |
|
157 |
|
158 // End of File |
|