Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 inline TBool RPacketContext::TPacketFilterV3::IsPresent(TPacketFilterDataBitmapPos aDataMemberBitmapPos)
24 This method may be called by the client application.
25 Checks if the bitmap of a certain attribute is set or not.
27 @param aDataMemberBitmapPos Bitmap of an attribute.
31 return aDataMemberBitmapPos & iPresentDataBitmap;
34 inline void RPacketContext::TPacketFilterV3::Reset(TPacketFilterDataBitmapPos aDataMemberBitmapPos)
36 This method may be called by the client application.
37 Resets the iPresentDataBitmap of an attribute accordign to its Bitmap value.
39 @param aDataMemberBitmapPos Bitmap of an attribute.
43 iPresentDataBitmap &= ~aDataMemberBitmapPos;
46 inline void RPacketContext::TPacketFilterV3::Reset()
48 This method may be called by the client application.
49 Sets the iPresentDataBitmap to 0.
53 iPresentDataBitmap = 0;
56 inline TInt RPacketContext::TPacketFilterV3::ProtocolNumberOrNextHeader()
58 This method may be called by the client application.
59 Gets the iProtocolNumberOrNextHeader value which has been set by the
60 SetProtocolNumberOrNextHeader method.
64 return iProtocolNumberOrNextHeader;
67 inline TInt RPacketContext::TPacketFilterV3::SrcPortMin()
69 This method may be called by the client application.
70 Gets the iSrcPortMin value which has been set by the
78 inline TInt RPacketContext::TPacketFilterV3::SrcPortMax()
80 This method may be called by the client application.
81 Gets the iSrcPortMax value which has been set by the
89 inline TInt RPacketContext::TPacketFilterV3::DestPortMin()
91 This method may be called by the client application.
92 Gets the iDestPortMin value which has been set by the
93 SetDestPortMin method.
100 inline TInt RPacketContext::TPacketFilterV3::DestPortMax()
102 This method may be called by the client application.
103 Gets the iDestPortMax value which has been set by the
104 SetDestPortMax method.
111 inline TUint32 RPacketContext::TPacketFilterV3::SPI()
113 This method may be called by the client application.
114 Gets the iIPSecSPI value which has been set by the
122 inline TUint16 RPacketContext::TPacketFilterV3::TOSorTrafficClass()
124 This method may be called by the client application.
125 Gets the iTOSorTrafficClass value which has been set by the
126 SetTOSorTrafficClass method.
130 return iTOSorTrafficClass;
133 inline TUint32 RPacketContext::TPacketFilterV3::FlowLabel()
135 This method may be called by the client application.
136 Gets the iFlowLabel value which has been set by the
147 inline RPacketContext::TPcoId::TPcoId():iId(0)
151 Constructor that initialises Id by provoded value.
153 @param aId Id ofIE identifier.
155 inline RPacketContext::TPcoId::TPcoId(TUint16 aId):iId(aId)
161 @param aId PCO Id to set.
163 inline void RPacketContext::TPcoId::SetId(TUint16 aId)
173 inline TUint16 RPacketContext::TPcoId::Id() const
179 Compares whether the PCO Id of other PCoId is the same.
181 @param PCO Id to compare.
183 inline TBool RPacketContext::TPcoId::IsEqual(const MTlvItemIdType& aOtherIdType) const
185 return iId==(static_cast<const TPcoId&>(aOtherIdType)).Id();
189 Length of serialised data.
191 @return Length of id when serialized.
193 inline TUint RPacketContext::TPcoId::SerializedLength()const
195 return sizeof(TUint16);
199 Serialise to the descriptor provided
201 Converts internally stored little-endian data
202 to big-endian encoded data as specified in 3GPP TS 24.008, table 10.5.154.
204 @param aData On completion contains serialized PCO item identifier.
206 inline void RPacketContext::TPcoId::ExternalizeL(TDes8& aData) const
209 User::Leave(KErrOverflow);
210 aData[0]=(iId & 0xff00)>>8;
215 Internalize data from the buffer provided.
217 Converts internally stored little-endian data
218 to big-endian encoded data as specified in 3GPP TS 24.008, table 10.5.154.
220 @param aData Buffer containing PCO item Id to be internalized.
222 inline void RPacketContext::TPcoId::InternalizeL(TDesC8& aData)
225 User::Leave(KErrUnderflow);
231 Constructor initialise length by provided value.
233 @param aLen Length of PCO item.
235 inline RPacketContext::TPcoItemDataLength::TPcoItemDataLength(TUint8 aLen):iDataLength(aLen)
241 inline RPacketContext::TPcoItemDataLength::TPcoItemDataLength():iDataLength(0)
245 Sets length of associated data.
247 @param aLength Length of PCO item.
249 inline void RPacketContext::TPcoItemDataLength::SetDataLength(TUint aLength)
251 iDataLength=(TUint8)aLength;
255 Length when serialised.
257 @return Seriliazed length.
259 inline TUint RPacketContext::TPcoItemDataLength::SerializedLength() const
261 return sizeof(TUint8);
265 Length of associated item data.
267 @return Length of PCO item.
269 inline TUint RPacketContext::TPcoItemDataLength::DataLength() const
275 Serialize data member into provoded descriptor.
277 @param aData buffer into which length will be serialized.
279 inline void RPacketContext::TPcoItemDataLength::ExternalizeL(TDes8& aData) const
282 User::Leave(KErrOverflow);
283 aData[0]=iDataLength;
287 Deserialize data from provided buffer
289 @param aData Buffer containing length to be internalized.
291 inline void RPacketContext::TPcoItemDataLength::InternalizeL(TDesC8& aData)
294 User::Leave(KErrUnderflow);
295 iDataLength=aData[0];