CPacked Class Reference

class CPacked : public CBase

A base class to serialize objects between clients and the server.

Library: FeedsEngine.lib

Since
3.1

Inherits from

Constructor & Destructor Documentation

CPacked(TInt, TInt)

CPacked(TIntaTokenArrayInc,
TIntaStringTableInc
)[protected]

C++ default constructor.

Parameters

TInt aTokenArrayInc
TInt aStringTableInc

~CPacked()

~CPacked()[virtual]

Destructor.

Member Functions Documentation

AddAttributeL(TInt, const TDesC &)

voidAddAttributeL(TIntaAttribute,
const TDesC &aValue
)

Insert an attribute. This attribute should be applied to the enclosing entity (Feed, Item, or Enclosure).

Since
3.1

Parameters

TInt aAttributeThe attribute's id.
const TDesC & aValueThe attribute's value.

AddAttributeL(TInt, TInt)

voidAddAttributeL(TIntaAttribute,
TIntaValue
)

Insert an attribute. This attribute should be applied to the enclosing entity (Feed, Item, or Enclosure).

Since
3.1

Parameters

TInt aAttributeThe attribute's id.
TInt aValueThe attribute's value.

AppendStringTableChunkL(const TDesC8 &)

voidAppendStringTableChunkL(const TDesC8 &aChunk)

Append a chunk of "string-table" values to the feed.

Since
3.1

Parameters

const TDesC8 & aChunkA string chunk.

AppendTokenChunkL(const TDesC8 &)

voidAppendTokenChunkL(const TDesC8 &aChunk)

Append a chunk of "token" values to the feed.

Since
3.1

Parameters

const TDesC8 & aChunkA token chunk.

BaseConstructL()

voidBaseConstructL()[protected]

By default Symbian 2nd phase constructor is private.

ExtractAttributeValue(TUint &, TPtrC &)

voidExtractAttributeValue(TUint &aAttribute,
TPtrC &aValue
)const

Upon completion aValue wraps the current attribute value. This method must only be called when the call to NextToken returns EPackedTokenAttribute.

Since
3.1

Parameters

TUint & aAttributeThe attribute.
TPtrC & aValueThe attribute value.

HasNextToken()

TBool HasNextToken()const

Determine if there is a next token.

Since
3.1

InsertTokenL(TUint)

voidInsertTokenL(TUintaToken)[protected]

Insert a token.

Since
3.1

Parameters

TUint aTokenThe token.

NextToken()

TUint NextToken()const

Returns the next token.

Since
3.1

Reset()

voidReset()const

Resets back to the first token.

Since
3.1

Trim()

voidTrim()

Removes any temp memory used while appending chunks.

Since
3.1

Member Data Documentation

const TInt KStringTableInc

const TIntKStringTableInc[protected]

const TInt KTokenArrayInc

const TIntKTokenArrayInc[protected]

TInt iNextToken

TInt iNextToken[protected]

HBufC * iStringTable

HBufC *iStringTable[protected]

TUint * iTokenArray

TUint *iTokenArray[protected]

TPtrC8 iTokenArrayAsDes

TPtrC8 iTokenArrayAsDes[protected]

TInt iTokenArrayLength

TInt iTokenArrayLength[protected]

TInt iTokenArrayMaxLength

TInt iTokenArrayMaxLength[protected]