TCookiePacker Class Reference
TCookiePackedCookie Packs a CCookie's content into a buffer for sending across IPC. Also unpacks the data into a CCookie
Private Member Functions |
---|
TInt
| AddDateL(const CCookie &, TDes8 &, TBool) |
TInt
| AddStringF(const CCookie::TCookieAttributeName, const CCookie &, TDes8 &, TBool) |
void | AppendAttributeLength(TInt, TDes8 &) |
TInt
| DecreaseNumericValueL(TDes &, const TInt) |
TInt
| DoPackCookie(TDes8 &, const CCookie &, TBool) |
void | GetPackedAttributeL(const CCookie::TCookieAttributeName, CCookie &, const TUint8 *&) |
void | GetPackedDateAttributeL(CCookie &, const TUint8 *&) |
void | TrimNameAndValueL(CCookie &) |
void | UnpackCookieL(const TUint8 *&, CCookie &) |
Constructor & Destructor Documentation
TCookiePacker(RStringPool)
Member Functions Documentation
AddDateL(const CCookie &, TDes8 &, TBool)
Add Date attribute from cookie to the string buffer.
AddStringF(const CCookie::TCookieAttributeName, const CCookie &, TDes8 &, TBool)
Add a named (string type) attribute from cookie to the string buffer.
AppendAttributeLength(TInt, TDes8 &)
void | AppendAttributeLength | ( | TInt | aLength, |
| TDes8 & | aBuffer |
| ) | const [private] |
CliPackCookie(TDes8 &, const CCookie &)
DecreaseNumericValueL(TDes &, const TInt)
TInt
| DecreaseNumericValueL | ( | TDes & | aBuffer, |
| const TInt | aIndex |
| ) | const [private] |
Decrease a numeric value in a numeric formatted buffer. (underflow is handled)
Parameters
TDes & aBuffer | contains numeric value |
const TInt aIndex | position where to decrease |
DoPackCookie(TDes8 &, const CCookie &, TBool)
GetPackedAttributeL(const CCookie::TCookieAttributeName, CCookie &, const TUint8 *&)
Unpack a named (string type) attribute from the buffer to the cookie.
GetPackedDateAttributeL(CCookie &, const TUint8 *&)
void | GetPackedDateAttributeL | ( | CCookie & | aCookie, |
| const TUint8 *& | aPtrStart |
| ) | const [private] |
Unpack the Date attribute from the buffer to the cookie.
SrvPackCookie(TDes8 &, const CCookie &)
TrimNameAndValueL(CCookie &)
void | TrimNameAndValueL | ( | CCookie & | aCookie | ) | const [private] |
Trim cookie's name and value if their size is bigger than 4K.
Parameters
CCookie & aCookie | identifies the cookie |
UnpackCookieL(const TDesC8 &, CCookie &)
This method unpacks a cookie from a flat buffer to a cookie object. It is used from both client and server side.
UnpackCookieL(const TUint8 *&, CCookie &)
void | UnpackCookieL | ( | const TUint8 *& | aPtr, |
| CCookie & | aCookie |
| ) | const [private] |
This method unpacks a cookie from a flat buffer to a cookie object. It is used from both client and server side.
UnpackCookiesFromBufferL(const TDesC8 &, RPointerArray< CCookie > &)
Processes the buffer and inserts cookies into the array.
Parameters
const TDesC8 & aBuffer | Buffer to be processed. It contains the cookies in a form that makes it possible to transfer the cookies over client- server boundary, |
RPointerArray< CCookie > & aCookies | The array that is supposed to contain the cookies. |
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.