equal
deleted
inserted
replaced
122 // |
122 // |
123 TBool CSenRfileTxnState::GetNextDataPart(TPtrC8& aDataPart) |
123 TBool CSenRfileTxnState::GetNextDataPart(TPtrC8& aDataPart) |
124 { |
124 { |
125 TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenRfileTxnState::GetNextDataPart"))); |
125 TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenRfileTxnState::GetNextDataPart"))); |
126 TBool noMoreData = ETrue; // No more data |
126 TBool noMoreData = ETrue; // No more data |
127 |
127 TInt retVal(KErrNone); |
128 if ( iFile.SubSessionHandle() ) // Send in a chunked mode from file |
128 if ( iFile.SubSessionHandle() ) // Send in a chunked mode from file |
129 { |
129 { |
130 if ( !iReadData ) |
130 if ( !iReadData ) |
131 { |
131 { |
132 TRAPD(retVal, |
132 TRAP(retVal, |
133 iReadData = HBufC8::NewL( KDataPartLength ); |
133 iReadData = HBufC8::NewL( KDataPartLength ); |
134 TPtr8 ptr = iReadData->Des(); |
134 TPtr8 ptr = iReadData->Des(); |
135 User::LeaveIfError( iFile.Read( ptr, KDataPartLength ) ); |
135 User::LeaveIfError( iFile.Read( ptr, KDataPartLength ) ); |
136 ); |
136 ); |
137 |
137 |