106 FLOG(_L("[USBUINOTIF]\t CUsbUiNotifOtgError::GetParamsL")); |
106 FLOG(_L("[USBUINOTIF]\t CUsbUiNotifOtgError::GetParamsL")); |
107 if (iQuery || iReplySlot != 0 || iNeedToCompleteMessage) |
107 if (iQuery || iReplySlot != 0 || iNeedToCompleteMessage) |
108 { |
108 { |
109 User::Leave( KErrInUse ); |
109 User::Leave( KErrInUse ); |
110 } |
110 } |
111 |
111 |
112 iMessage = aMessage; |
|
113 iNeedToCompleteMessage = ETrue; |
|
114 iReplySlot = aReplySlot; |
|
115 |
|
116 // Get parameters |
112 // Get parameters |
117 // |
113 // |
118 iErrorId = 0; |
114 |
119 TPckgC<TInt> pckg( iErrorId ); |
115 TPckgC<TInt> pckg( iErrorId ); |
120 pckg.Set( aBuffer ); |
116 pckg.Set( aBuffer ); |
121 iErrorId = pckg(); |
117 iErrorId = pckg(); |
122 |
118 |
|
119 FTRACE(FPrint(_L("[USBUINOTIF]\t CUsbUiNotifOtgError::GetParamsL iErrorId: %d"), iErrorId )); |
|
120 if ( iErrorId < 0 || iErrorId >= iStringIds.Count() ) |
|
121 { |
|
122 User::Leave( KErrArgument); |
|
123 } |
|
124 |
|
125 iMessage = aMessage; |
|
126 iNeedToCompleteMessage = ETrue; |
|
127 iReplySlot = aReplySlot; |
|
128 |
123 SetActive(); |
129 SetActive(); |
124 iStatus = KRequestPending; |
130 iStatus = KRequestPending; |
125 TRequestStatus* stat = &iStatus; |
131 TRequestStatus* stat = &iStatus; |
126 User::RequestComplete( stat, KErrNone ); |
132 User::RequestComplete( stat, KErrNone ); |
|
133 |
127 FLOG(_L("[USBUINOTIF]\t CUsbUiNotifOtgError::GetParamsL() completed")); |
134 FLOG(_L("[USBUINOTIF]\t CUsbUiNotifOtgError::GetParamsL() completed")); |
128 } |
135 } |
129 |
136 |
130 // ---------------------------------------------------------------------------- |
137 // ---------------------------------------------------------------------------- |
131 // CUsbUiNotifOtgError::RunL |
138 // CUsbUiNotifOtgError::RunL |