equal
deleted
inserted
replaced
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
47 default: |
47 default: |
48 User::Leave(KErrArgument); |
48 User::Leave(KErrArgument); |
49 } |
49 } |
50 } |
50 } |
51 |
51 |
52 #ifdef __FLOGGING__ |
|
53 TInt SdpReqHandler::RunError(TInt aError, const TSdpPdu& aReqPdu, TSdpPdu &aRespPdu) |
|
54 #else |
|
55 TInt SdpReqHandler::RunError(TInt aError, const TSdpPdu& /*aReqPdu*/, TSdpPdu &aRespPdu) |
52 TInt SdpReqHandler::RunError(TInt aError, const TSdpPdu& /*aReqPdu*/, TSdpPdu &aRespPdu) |
56 #endif |
|
57 /** |
53 /** |
58 Send an appropriate error. |
54 Send an appropriate error. |
59 |
55 |
60 Parameter format is |
56 Parameter format is |
61 @verbatim |
57 @verbatim |
369 responseAttributes.Set(&aRespPdu.iParams[0], 0, aRespPdu.iParams.MaxLength()); |
365 responseAttributes.Set(&aRespPdu.iParams[0], 0, aRespPdu.iParams.MaxLength()); |
370 TElementEncoder attributeEncoder(responseAttributes); |
366 TElementEncoder attributeEncoder(responseAttributes); |
371 TInt oldLen = responseAttributes.Length(); |
367 TInt oldLen = responseAttributes.Length(); |
372 responseAttributes.SetLength(oldLen + KRspAttributeCountSize); |
368 responseAttributes.SetLength(oldLen + KRspAttributeCountSize); |
373 BigEndian::Put16(&responseAttributes[KRspAttributeCountOffset], (TUint16)(pduSize)); |
369 BigEndian::Put16(&responseAttributes[KRspAttributeCountOffset], (TUint16)(pduSize)); |
374 CAttrSizeItem* currentAttItem = collector->AttributeOf(sentRecords, sentAttributes); |
370 TAttrSizeItem* currentAttItem = collector->AttributeOf(sentRecords, sentAttributes); |
375 TInt lastAttr = collector->AttrCount(sentRecords); |
371 TInt lastAttr = collector->AttrCount(sentRecords); |
376 TPtrC8 attrValPtr(0,0); |
372 TPtrC8 attrValPtr(0,0); |
377 TBuf8<1> wBuffer(1); // used for byte insertion |
373 TBuf8<1> wBuffer(1); // used for byte insertion |
378 if (!inContFlag) |
374 if (!inContFlag) |
379 {// write the outer DES |
375 {// write the outer DES |
613 //NB attributeEncoder below writes to responseAttributes (pointing at response PDU)... |
609 //NB attributeEncoder below writes to responseAttributes (pointing at response PDU)... |
614 TElementEncoder attributeEncoder(responseAttributes); |
610 TElementEncoder attributeEncoder(responseAttributes); |
615 TInt oldLen = responseAttributes.Length(); |
611 TInt oldLen = responseAttributes.Length(); |
616 responseAttributes.SetLength(oldLen + KRspAttributeCountSize); |
612 responseAttributes.SetLength(oldLen + KRspAttributeCountSize); |
617 BigEndian::Put16(&responseAttributes[KRspAttributeCountOffset], (TUint16)(pduSize)); |
613 BigEndian::Put16(&responseAttributes[KRspAttributeCountOffset], (TUint16)(pduSize)); |
618 CAttrSizeItem* currentAttItem = collector->AttributeOf(sentRecords, sentAttributes); |
614 TAttrSizeItem* currentAttItem = collector->AttributeOf(sentRecords, sentAttributes); |
619 TInt lastAttr = collector->AttrCount(sentRecords); |
615 TInt lastAttr = collector->AttrCount(sentRecords); |
620 TPtrC8 attrValPtr(0,0); |
616 TPtrC8 attrValPtr(0,0); |
621 TBuf8<1> wBuffer(1); // used for byte insertion |
617 TBuf8<1> wBuffer(1); // used for byte insertion |
622 if (!inContFlag) |
618 if (!inContFlag) |
623 {// write the outer DES |
619 {// write the outer DES |