RFolderItem Class Reference

class RFolderItem : public RSubSessionBase

The client side interface to a server resident FolderItem.

Library: FeedsEngine.lib

Since
3.1

Inherits from

Public Member Functions
RFolderItem(MFolderItemObserver &, TInt, TBool)
IMPORT_C voidAddFolderItemL(const TDesC &, const TDesC &, TBool, const CFolderItem &)
voidCancelAllCommandsL()
IMPORT_C voidChangeFolderItemL(const CFolderItem &, const TDesC &, const TDesC &)
IMPORT_C voidClose()
IMPORT_C voidDeleteFolderItemsL(RPointerArray< const CFolderItem > &)
IMPORT_C voidExportFolderItemsL(RPointerArray< const CFolderItem > &, const TDesC &)
IMPORT_C voidFetchRootFolderItemL()
IMPORT_C TBoolHasRootFolderItem()
IMPORT_C voidImportOPMLL(const TDesC &, TBool)
IMPORT_C voidMoveFolderItemsL(RPointerArray< const CFolderItem > &, TInt)
IMPORT_C voidMoveFolderItemsToL(RPointerArray< const CFolderItem > &, const CFolderItem &)
voidNetworkConnectionNeededL(TInt *, TInt &, TBool &, TApBearerType &)
IMPORT_C TIntOpen(RFeedsServer &)
voidRequestHandlerCompleted(CRequestHandler &, TInt)
voidRequestHandlerCompletedL(CTransaction &, TInt)
IMPORT_C const CFolderItem &RootFolderItem()
voidSendAsyncCommand(TInt, const TIpcArgs &, TRequestStatus &)
IMPORT_C voidUpdateAllL()
IMPORT_C voidUpdateFolderItemsL(const RPointerArray< const CFolderItem > &)
IMPORT_C voidWatchFolderListL()
Inherited Functions
RSubSessionBase::CloseSubSession(TInt)
RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::RSubSessionBase()
RSubSessionBase::Send(TInt)const
RSubSessionBase::Send(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt)const
RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSubSessionBase::Session()const
RSubSessionBase::SubSessionHandle()const
Private Attributes
RPointerArray< CFolderItemRequestHandler >iActiveRequests
RFeedsServer *iFeedsServer
CFolderItem *iFolderItem
TInt iFolderListId
TBool iItemTitleNeed
MFolderItemObserver &iObserver

Constructor & Destructor Documentation

RFolderItem(MFolderItemObserver &, TInt, TBool)

IMPORT_CRFolderItem(MFolderItemObserver &aObserver,
TIntaFolderListId = 0,
TBoolaItemTitleNeed = EFalse
)

C++ default constructor.

Parameters

MFolderItemObserver & aObserver
TInt aFolderListId = 0
TBool aItemTitleNeed = EFalse

Member Functions Documentation

AddFolderItemL(const TDesC &, const TDesC &, TBool, const CFolderItem &)

IMPORT_C voidAddFolderItemL(const TDesC &aName,
const TDesC &aUrl,
TBoolaIsFolder,
const CFolderItem &aParent
)

Request the feeds server to add a new folder item.

Since
3.1

Parameters

const TDesC & aNameThe name of the item.
const TDesC & aUrlThe url of the item.
TBool aIsFolderTrue if this is a folder.
const CFolderItem & aParentThe parent folder.

CancelAllCommandsL()

voidCancelAllCommandsL()[inline, virtual]

ChangeFolderItemL(const CFolderItem &, const TDesC &, const TDesC &)

IMPORT_C voidChangeFolderItemL(const CFolderItem &aFolderItem,
const TDesC &aTitle,
const TDesC &aUrl
)

Request the feeds server to change the folder item. If this is a folder then KNullDesC should be passed to the aUrl argument.

Since
3.1

Parameters

const CFolderItem & aFolderItemThe item to update.
const TDesC & aTitleThe item's title..
const TDesC & aUrlThe item's url or KNullDesC.

Close()

IMPORT_C voidClose()

Closes the session.

Since
3.1

DeleteFolderItemsL(RPointerArray< const CFolderItem > &)

IMPORT_C voidDeleteFolderItemsL(RPointerArray< const CFolderItem > &aFolderItems)

Request the feeds server to delete the folder items

Since
3.1

Parameters

RPointerArray< const CFolderItem > & aFolderItems

ExportFolderItemsL(RPointerArray< const CFolderItem > &, const TDesC &)

IMPORT_C voidExportFolderItemsL(RPointerArray< const CFolderItem > &aFolderItems,
const TDesC &aExportFileName
)

Request the feeds server to export the folder items

Since
3.2

Parameters

RPointerArray< const CFolderItem > & aFolderItems
const TDesC & aExportFileNameThe OPML file name.

FetchRootFolderItemL()

IMPORT_C voidFetchRootFolderItemL()

Fetches the root FolderItem. FetchRootFolderItemCompleted is called upon completion.

Since
3.1

HasRootFolderItem()

IMPORT_C TBoolHasRootFolderItem()const

Returns ETrue if it has an available root folder.

Since
3.1

ImportOPMLL(const TDesC &, TBool)

IMPORT_C voidImportOPMLL(const TDesC &aPath,
TBoolaClearFolderList = EFalse
)

Import OPML file passed from the client.

Since
3.2

Parameters

const TDesC & aPathThe OPML file path.
TBool aClearFolderList = EFalseFlag indicating to or not to clear entries under this Folder List before load OPML.

MoveFolderItemsL(RPointerArray< const CFolderItem > &, TInt)

IMPORT_C voidMoveFolderItemsL(RPointerArray< const CFolderItem > &aFolderItems,
TIntaIndex
)

Request the feeds server to move the folder item to a different index.

Since
3.1

Parameters

RPointerArray< const CFolderItem > & aFolderItems
TInt aIndexThe new index of the folder item (within its parent).

MoveFolderItemsToL(RPointerArray< const CFolderItem > &, const CFolderItem &)

IMPORT_C voidMoveFolderItemsToL(RPointerArray< const CFolderItem > &aFolderItems,
const CFolderItem &aParent
)

Request the feeds server to move the folder item to a different parent.

Since
3.1

Parameters

RPointerArray< const CFolderItem > & aFolderItems
const CFolderItem & aParentThe folder item's new parent.

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 root FolderItem on the server.

Since
3.1

Parameters

RFeedsServer & aFeedsServerThe shared connection to the feeds server.

RequestHandlerCompleted(CRequestHandler &, TInt)

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

Notifies the observer that the request is completed.

Since
3.1

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.

RootFolderItem()

IMPORT_C const CFolderItem &RootFolderItem()const

Once fetched, it returns the root CFolderItem. This method panics the client if it is called before the folder item is available.

Since
3.1

SendAsyncCommand(TInt, const TIpcArgs &, TRequestStatus &)

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

Parameters

TInt
const TIpcArgs &
TRequestStatus &

UpdateAllL()

IMPORT_C voidUpdateAllL()

Request the feeds server to update all the folder items (refresh them from the web) in a current folder-list.

Since
3.1

UpdateFolderItemsL(const RPointerArray< const CFolderItem > &)

IMPORT_C voidUpdateFolderItemsL(const RPointerArray< const CFolderItem > &aFolderItems)

Request the feeds server to update the folder items (refresh them from the web).

Since
3.1

Parameters

const RPointerArray< const CFolderItem > & aFolderItemsThe folder items being updated, has to be feed, not folder

WatchFolderListL()

IMPORT_C voidWatchFolderListL()

Sets up a notifier to execute when the folder list changes.

Since
3.1

Member Data Documentation

RPointerArray< CFolderItemRequestHandler > iActiveRequests

RPointerArray< CFolderItemRequestHandler >iActiveRequests[private]

RFeedsServer * iFeedsServer

RFeedsServer *iFeedsServer[private]

CFolderItem * iFolderItem

CFolderItem *iFolderItem[private]

TInt iFolderListId

TInt iFolderListId[private]

TBool iItemTitleNeed

TBool iItemTitleNeed[private]

MFolderItemObserver & iObserver

MFolderItemObserver &iObserver[private]