CFeed Class Reference

class CFeed : public CBase

Holds information about a feed.

Library: FeedsEngine.lib

Since
3.0

Inherits from

Public Member Functions
~CFeed()
IMPORT_C const TTime &Date()
IMPORT_C voidDebug_Print(void)
IMPORT_C voidDebug_PrintInfo(const TDesC &, RFile &)
IMPORT_C const TDesC &Description()
IMPORT_C TIntId()
IMPORT_C const CItem &ItemAt(TInt)
IMPORT_C TIntItemCount(void)
IMPORT_C voidItemStatusL(RArray< TInt > &, RArray< TItemStatus > &)
IMPORT_C const TDesC &Title()
IMPORT_C const TDesC &Url()
Private Member Functions
CFeed(CFeedsEntity *)
voidAddItemL(CItem *)
voidConstructL()
CFeed *NewL(CFeedsEntity *)
voidSetAttribute(TUint, const TPtrC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TTime iDate
TPtrC iDescription
TInt iFeedId
CFeedsEntity *iFeedsEntity
RPointerArray< CItem >iItems
TLeakTrackeriLeakTracker
TInt iOtherDescriptions
TInt iOtherLinks
TInt iOtherTitles
TPtrC iTitle
TPtrC iUrl

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 *)

voidAddItemL(CItem *aItem)[private]

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

Since
3.0

Parameters

CItem * aItemThe Item

ConstructL()

voidConstructL()[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 voidDebug_Print(void)const

Prints the feed to the log file.

Since
3.0

Parameters

void

Debug_PrintInfo(const TDesC &, RFile &)

IMPORT_C voidDebug_PrintInfo(const TDesC &aUrl,
RFile &aFile
)const

Prints info about the feed.

Since
3.0

Parameters

const TDesC & aUrlThe feeds url.
RFile & aFileThe log file.

Description()

IMPORT_C const TDesC &Description()const

Returns the feed's description.

Since
3.0

Id()

IMPORT_C TIntId()const

Returns the feed's unique id.

Since
3.1

ItemAt(TInt)

IMPORT_C const CItem &ItemAt(TIntaIndex)const

Returns the item at the given index

Since
3.0

Parameters

TInt aIndexThe index of the item.

ItemCount(void)

IMPORT_C TIntItemCount(void)const

Returns the number of items.

Since
3.0

Parameters

void

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

IMPORT_C voidItemStatusL(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 > & aItemIdsThe ids of the items.
RArray< TItemStatus > & aItemStatusThe 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 &)

voidSetAttribute(TUintaAttribute,
const TPtrC &aAttributeValue
)[private]

Sets an attribute.

Since
3.1

Parameters

TUint aAttributeThe attribute.
const TPtrC & aAttributeValueThe 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

TLeakTrackeriLeakTracker[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]