CFeed Class Reference

class CFeed : public CBase

Holds information about a feed.

Library: FeedsEngine.lib

Since
3.0

Inherits from

Constructor & Destructor Documentation

CFeed(CFeedsEntity *)

CFeed ( CFeedsEntity * aFeedsEntity ) [private]

C++ default constructor.

Parameters

CFeedsEntity * aFeedsEntity

~CFeed()

IMPORT_C ~CFeed ( ) [virtual]

Destructor.

Member Functions Documentation

AddItemL(CItem *)

void AddItemL ( CItem * aItem ) [private]

Appends the new Item to the Feed. aItem is adopted by this method.

Since
3.0

Parameters

CItem * aItem The Item

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

Date()

IMPORT_C const TTime & Date ( ) const

Returns the feed's Date.

Since
3.0

Debug_Print(void)

IMPORT_C void Debug_Print ( void ) const

Prints the feed to the log file.

Since
3.0

Parameters

void

Debug_PrintInfo(const TDesC &, RFile &)

IMPORT_C void Debug_PrintInfo ( const TDesC & aUrl,
RFile & aFile
) const

Prints info about the feed.

Since
3.0

Parameters

const TDesC & aUrl The feeds url.
RFile & aFile The log file.

Description()

IMPORT_C const TDesC & Description ( ) const

Returns the feed's description.

Since
3.0

Id()

IMPORT_C TInt Id ( ) const

Returns the feed's unique id.

Since
3.1

ItemAt(TInt)

IMPORT_C const CItem & ItemAt ( TInt aIndex ) const

Returns the item at the given index

Since
3.0

Parameters

TInt aIndex The index of the item.

ItemCount(void)

IMPORT_C TInt ItemCount ( void ) const

Returns the number of items.

Since
3.0

Parameters

void

ItemStatusL(RArray< TInt > &, RArray< TItemStatus > &)

IMPORT_C void ItemStatusL ( RArray < TInt > & aItemIds,
RArray < TItemStatus > & aItemStatus
) const

Returns the INITIAL status of each of the items in the feed. The caller can then modify the values and call RFeed::UpdateFeedItemStatusL to request the feeds server to update the feed's item status.

Since
3.1

Parameters

RArray < TInt > & aItemIds The ids of the items.
RArray < TItemStatus > & aItemStatus The coresponding status of each of the items in the feed.

NewL(CFeedsEntity *)

CFeed * NewL ( CFeedsEntity * aFeedsEntity ) [private, static]

Two-phased constructor. aPackedFeed is adopted by this method. Only called from RFeed .

Parameters

CFeedsEntity * aFeedsEntity

SetAttribute(TUint, const TPtrC &)

void SetAttribute ( TUint aAttribute,
const TPtrC & aAttributeValue
) [private]

Sets an attribute.

Since
3.1

Parameters

TUint aAttribute The attribute.
const TPtrC & aAttributeValue The attribute value.

Title()

IMPORT_C const TDesC & Title ( ) const

Returns the feed's title.

Since
3.0

Url()

IMPORT_C const TDesC & Url ( ) const

Returns the feed's url.

Since
3.0

Member Data Documentation

TTime iDate

TTime iDate [private]

TPtrC iDescription

TPtrC iDescription [private]

TInt iFeedId

TInt iFeedId [private]

CFeedsEntity * iFeedsEntity

CFeedsEntity * iFeedsEntity [private]

RPointerArray< CItem > iItems

RPointerArray < CItem > iItems [private]

TLeakTracker iLeakTracker

TLeakTracker iLeakTracker [private]

TInt iOtherDescriptions

TInt iOtherDescriptions [private]

TInt iOtherLinks

TInt iOtherLinks [private]

TInt iOtherTitles

TInt iOtherTitles [private]

TPtrC iTitle

TPtrC iTitle [private]

TPtrC iUrl

TPtrC iUrl [private]