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