RFeed Class Reference

class RFeed : public RSubSessionBase

The client side interface to a server resident Feed.

Library: FeedsEngine.lib

Since
3.1

Inherits from

Constructor & Destructor Documentation

RFeed(MFeedObserver &)

IMPORT_CRFeed(MFeedObserver &aObserver)

C++ default constructor.

Parameters

MFeedObserver & aObserver

Member Functions Documentation

CancelAllCommandsL()

voidCancelAllCommandsL()[inline, virtual]

Preserving Binary Compatibility.

Since
7.1 Empty function does nothing.

Close()

IMPORT_C voidClose()

Closes the session.

Since
3.1

Feed()

IMPORT_C const CFeed &Feed()const

Once fetched, it returns the CFeed. This method panics the client if it is called before the feed item is available.

Since
3.1

FetchFeedL(const TDesC &, TInt, TBool, TBool)

IMPORT_C voidFetchFeedL(const TDesC &aUrl,
TIntaFolderListId = 0,
TBoolaForceUpdate = EFalse,
TBoolaNoCache = EFalse
)

Fetches the given feed. FetchFeedCompleted is called upon completion. The same url could appear multiple times in the feeds DB if each has different folder list ID.

Since
3.1

Parameters

const TDesC & aUrlThe url of the feed.
TInt aFolderListId = 0The folder list ID associate with the feed.
TBool aForceUpdate = EFalseWhen true the server will ignore the cache.
TBool aNoCache = EFalseWhen true the server will not cache the feed.

FetchFeedL(TInt, TBool, TBool)

IMPORT_C voidFetchFeedL(TIntaFeedId,
TBoolaForceUpdate = EFalse,
TBoolaNoCache = EFalse
)

Fetches the given feed -- using the feed's id. FetchFeedCompleted is called upon completion.

Since
3.1

Parameters

TInt aFeedIdThe id of the feed (from the associated CFolderItem).
TBool aForceUpdate = EFalseWhen true the server will ignore the cache.
TBool aNoCache = EFalseWhen true the server will not cache the feed.

HasCurrentFeed()

IMPORT_C TBoolHasCurrentFeed()const

Returns ETrue if it has an available current feed.

Since
3.1

NetworkConnectionNeededL(TInt *, TInt &, TBool &, TApBearerType &)

voidNetworkConnectionNeededL(TInt *aConnectionPtr,
TInt &aSockSvrHandle,
TBool &aNewConn,
TApBearerType &aBearerType
)[virtual]

Request to create a network connection.

Since
3.1

Parameters

TInt * aConnectionPtrA pointer to the new connection. If NULL, the proxy filter will automatically create a network connection.
TInt & aSockSvrHandleA handle to the socket server.
TBool & aNewConnA flag if a new connection was created. If the connection is not new, proxy filter optimization will not read the proxy again from CommsBd.
TApBearerType & aBearerTypeThe bearer type of the new connection

Open(RFeedsServer &)

IMPORT_C TIntOpen(RFeedsServer &aFeedsServer)

Opens a session to the given feed on the server.

Since
3.1

Parameters

RFeedsServer & aFeedsServerThe shared connection to the feeds server.

RequestHandlerCompleted(CRequestHandler &, TInt)

voidRequestHandlerCompleted(CRequestHandler &,
TInt
)[inline, virtual]

Preserving Binary Compatibility.

Since
7.1 Empty function does nothing.

Parameters

CRequestHandler &
TInt

RequestHandlerCompletedL(CTransaction &, TInt)

voidRequestHandlerCompletedL(CTransaction &aTrans,
TIntaStatus
)

Notifies the observer that the request is completed.

Since
3.1

Parameters

CTransaction & aTrans
TInt aStatusThe result code of the request.

SendAsyncCommand(TInt, const TIpcArgs &, TRequestStatus &)

voidSendAsyncCommand(TInt,
const TIpcArgs &,
TRequestStatus &
)const [inline, virtual]

Requests the observer to send a command to the server.

Since
7.1

Parameters

TInt
const TIpcArgs &
TRequestStatus &

UpdateFeedItemStatusL(const RArray< TInt > &, const RArray< TItemStatus > &, TInt)

IMPORT_C voidUpdateFeedItemStatusL(const RArray< TInt > &aItemIds,
const RArray< TItemStatus > &aItemStatus,
TIntaUnreadCount
)

Request the feeds server to update the feed's item status.

Since
3.1

Parameters

const RArray< TInt > & aItemIdsThe id's of the items to update.
const RArray< TItemStatus > & aItemStatusThe new item status.
TInt aUnreadCount

Member Data Documentation

RPointerArray< CFeedRequestHandler > iActiveRequests

RPointerArray< CFeedRequestHandler >iActiveRequests[private]

CFeed * iFeed

CFeed *iFeed[private]

RFeedsServer * iFeedsServer

RFeedsServer *iFeedsServer[private]

MFeedObserver & iObserver

MFeedObserver &iObserver[private]

TBool iPendingFetchFeed

TBool iPendingFetchFeed[private]